Members register via email+password (scrypt) or Google OAuth — same signed-cookie + scrypt pattern as LokiLab (lib/auth.ts, member-password.ts, member-auth.ts, google-oauth.ts), own AUTH_SECRET and own OAuth client, own dedicated Postgres database (lokiloto-db on Coolify), fully isolated from LokiLab's own DB and auth. Leaderboard tracks who follows Loki's picks most accurately — members star a pick from the results panel (FollowButton), resolution reuses LokiLab's own lastDraw.won, no money or pooled play involved anywhere. Leaderboard page renders a horizontal bar chart (recharts) plus a ranked list. Profile page: public nickname (required to appear on the leaderboard), list of followed picks. Header now carries nav + a user menu (avatar dropdown when signed in, "Connexion" button otherwise). Dockerfile runs prisma migrate deploy at container start via docker-entrypoint.sh, same pattern as LokiLab. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
35 lines
763 B
JSON
35 lines
763 B
JSON
{
|
|
"name": "lokiloto",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start"
|
|
},
|
|
"dependencies": {
|
|
"@prisma/client": "6.19.3",
|
|
"class-variance-authority": "^0.7.1",
|
|
"cn": "^0.5.0",
|
|
"lucide-react": "^1.64.0",
|
|
"next": "16.4.3",
|
|
"prisma": "6.19.3",
|
|
"radix-ui": "^1.8.1",
|
|
"react": "19.3.0",
|
|
"react-dom": "19.3.0",
|
|
"recharts": "^3.10.1",
|
|
"server-only": "^0.0.1",
|
|
"shadcn": "^4.23.0",
|
|
"tw-animate-css": "^1.4.0",
|
|
"zod": "^4.6.7"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/turbopack": "^4",
|
|
"@types/node": "^20",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"tailwindcss": "^4",
|
|
"typescript": "^5"
|
|
}
|
|
}
|