Back-office (roadmap V1 step 7): - server: token-protected HTTP API under /api/admin (ADMIN_TOKEN), Drizzle-backed CRUD for manual questions — list, create (mcq/truefalse/free, category upsert, dedup on prompt, validation), delete; 401/503 when unauthorized/unconfigured - client: /admin page with token login + TanStack Query (list/create/delete), format-aware form (QCM / vrai-faux / réponse libre) - env: ADMIN_TOKEN README: replace the shadcn template with a real NerdWare overview (stack, structure, getting started, scripts, game modes, back-office). Verified against real Postgres: auth (401), create (201), dedup (409), validation (400), list, delete (200/404). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"name": "web",
|
|
"version": "0.0.1",
|
|
"type": "module",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"lint": "eslint",
|
|
"format": "prettier --write \"**/*.{ts,tsx}\"",
|
|
"typecheck": "tsc --noEmit",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@dicebear/core": "^10",
|
|
"@dicebear/styles": "^10",
|
|
"@nerdware/shared": "workspace:*",
|
|
"@tanstack/react-query": "^5.101.0",
|
|
"@workspace/ui": "workspace:*",
|
|
"framer-motion": "^11",
|
|
"lucide-react": "^1.17.0",
|
|
"react": "^19.2.6",
|
|
"react-dom": "^19.2.6",
|
|
"socket.io-client": "^4.8.1",
|
|
"wouter": "^3.7.1",
|
|
"zustand": "^5.0.8"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10",
|
|
"@tailwindcss/vite": "^4",
|
|
"@types/node": "^24",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"@vitejs/plugin-react": "^6",
|
|
"eslint": "^10",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
"globals": "^17",
|
|
"typescript": "~6",
|
|
"typescript-eslint": "^8",
|
|
"vite": "^8"
|
|
}
|
|
}
|