Adds docker-compose.yml (Postgres on host port 5433, to avoid clashing with another project's container already using 5432 on this machine) and .env.example so `docker compose up -d` + `cp .env.example .env.local` gets a working local DB. Adds a db:seed script alongside the existing db:* scripts. Rewrites README's "Adding a Database" section, which still described Better Auth's DB as optional/hypothetical even though this project already requires Postgres for both its own data and Better Auth's tables. Fills in CLAUDE.md's Data layer connection-details placeholder and fixes two more stale pnpm references and a wrong migrations path (src/db/migrations/ instead of the actual drizzle/) found nearby. Also fixes a real bug the new docs surfaced: `npm run db:seed` didn't load .env.local the way drizzle-kit does, so DATABASE_URL was silently unset when run as documented. seed.ts now loads env the same way drizzle.config.ts already does. Verified the full documented flow end-to-end against a fresh container: migrate, better-auth migrate, seed, dev server, real page render. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
68 lines
1.8 KiB
JSON
68 lines
1.8 KiB
JSON
{
|
|
"name": "ghost-kitchen",
|
|
"private": true,
|
|
"type": "module",
|
|
"imports": {
|
|
"#/*": "./src/*"
|
|
},
|
|
"scripts": {
|
|
"dev": "vite dev --port 3000",
|
|
"generate-routes": "tsr generate",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"db:generate": "drizzle-kit generate",
|
|
"db:migrate": "drizzle-kit migrate",
|
|
"db:push": "drizzle-kit push",
|
|
"db:pull": "drizzle-kit pull",
|
|
"db:studio": "drizzle-kit studio",
|
|
"db:seed": "tsx src/db/seed.ts",
|
|
"lint": "eslint",
|
|
"format": "prettier --write . && eslint --fix",
|
|
"check": "prettier --check .",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@tailwindcss/vite": "^4.1.18",
|
|
"@tanstack/react-devtools": "latest",
|
|
"@tanstack/react-router": "latest",
|
|
"@tanstack/react-router-devtools": "latest",
|
|
"@tanstack/react-start": "latest",
|
|
"better-auth": "^1.5.3",
|
|
"drizzle-kit": "^0.31.9",
|
|
"drizzle-orm": "^0.45.1",
|
|
"pg": "^8.16.3",
|
|
"react": "^19.2.0",
|
|
"react-dom": "^19.2.0",
|
|
"stripe": "^22.6.1",
|
|
"tailwindcss": "^4.1.18",
|
|
"zod": "^4.5.4"
|
|
},
|
|
"devDependencies": {
|
|
"@tanstack/devtools-vite": "latest",
|
|
"@tanstack/eslint-config": "latest",
|
|
"@tanstack/router-cli": "^1.132.0",
|
|
"@testcontainers/postgresql": "^12.1.0",
|
|
"@types/node": "^22.10.2",
|
|
"@types/pg": "^8.15.6",
|
|
"@types/react": "^19.2.0",
|
|
"@types/react-dom": "^19.2.0",
|
|
"@vitejs/plugin-react": "^6.0.1",
|
|
"dotenv": "^17.3.1",
|
|
"eslint": "^9.20.0",
|
|
"prettier": "^3.8.1",
|
|
"sass": "^1.104.0",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^6.0.2",
|
|
"vite": "^8.0.0",
|
|
"vitest": "^4.0.0"
|
|
},
|
|
"pnpm": {
|
|
"onlyBuiltDependencies": [
|
|
"esbuild",
|
|
"lightningcss"
|
|
]
|
|
}
|
|
}
|