Files
template_001/package.json
SAAC Daemon 5b37f88477 Harden template for production: add comments, fix bugs, add lock file
- Add inline comments to docker-compose.yml explaining the 5 key rules
  (expose vs ports, DB host, DB name persistence, no Traefik labels)
- Add comments to Dockerfile explaining multi-stage build, layer caching,
  and why .dockerignore excludes client/dist
- Add comments to .dockerignore explaining each exclusion
- Fix dev script: use nodemon (auto-restart) instead of node for server.js
- Add postinstall script to auto-install client deps (cd client && npm install)
- Fix SPA fallback: bare return → next() to prevent hanging requests
- Add root package-lock.json for deterministic server dependency installs
- Remove committed tsconfig.tsbuildinfo build artifact, add *.tsbuildinfo to .gitignore
- Update README: simpler install (npm install handles everything), reference SAAC_DEPLOYMENT.md,
  use npx instead of pnpm dlx for shadcn components
2026-02-18 16:36:33 +01:00

25 lines
696 B
JSON

{
"name": "template-001",
"version": "1.0.0",
"description": "SAAC company website template — React + shadcn/ui + Express + PostgreSQL",
"main": "server.js",
"scripts": {
"start": "node server.js",
"dev": "concurrently \"nodemon server.js\" \"cd client && npm run dev\"",
"build": "cd client && npm run build",
"postinstall": "[ -d client ] && cd client && npm install || true",
"dev:server": "nodemon server.js",
"dev:client": "cd client && npm run dev"
},
"dependencies": {
"express": "^4.18.2",
"pg": "^8.11.3",
"redis": "^4.6.12",
"cors": "^2.8.5"
},
"devDependencies": {
"nodemon": "^3.0.2",
"concurrently": "^8.2.2"
}
}