Backend stack: - Fastify v5 with JWT auth, CORS, cookies, rate limiting - PostgreSQL via Drizzle ORM with full schema: users, presets, game_progress, shared_patches, likes, refresh_tokens - Argon2 password hashing, httpOnly refresh cookie rotation API endpoints: - POST /api/v1/auth/register|login|refresh|logout - GET|PATCH /api/v1/users/me (profile) - GET /api/v1/admin/stats (dashboard KPIs) - GET|PATCH /api/v1/admin/users (list, role change, ban) - GET|PATCH /api/v1/admin/patches (moderation) - GET /api/health Infrastructure: - Vite proxy /api → localhost:3001 for dev - .env.example with all config vars - Dockerfile updated: installs server deps, serves SPA + API - npm run dev:server for backend hot-reload - npm run db:push for schema sync Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
13 lines
343 B
JSON
13 lines
343 B
JSON
{
|
|
"name": "reaktor",
|
|
"private": true,
|
|
"workspaces": ["packages/*"],
|
|
"scripts": {
|
|
"dev": "npm run dev -w packages/client",
|
|
"dev:server": "npm run dev -w packages/server",
|
|
"build": "npm run build -w packages/client",
|
|
"start": "node packages/server/src/index.js",
|
|
"db:push": "npm run db:push -w packages/server"
|
|
}
|
|
}
|