mirror of
https://github.com/karpathy/nanochat.git
synced 2026-05-08 16:59:59 +00:00
Build services/frontend/ replacing the legacy nanochat/ui.html single-file UI. Landing, login, and chat pages ported with full design system: Devanagari + Great Vibes hero, samosa/chai/toran SVG animations, gold/cream palette. - App Router pages: / (hero + floating illustrations), /login (split-screen OAuth with mandala motif), /chat (260px collapsible sidebar, suggestion chips, markdown + code-copy, auto-expanding input, slash commands) - SSE streaming via useSSE hook and /api/chat/stream BFF route (proxies to CHAT_API_URL when set, falls back to mock echo for local dev) - NextAuth.js v5 with Google + GitHub providers; middleware gates /chat/* - Zustand store with localStorage persistence for conversations/settings - Tailwind theme carries all ui.html tokens + keyframes (pendulum, float, wobble, steamFloat, steamType); SVG assets componentized under components/svg - Multi-stage node:20-alpine Dockerfile with Next standalone output Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
17 lines
423 B
Plaintext
17 lines
423 B
Plaintext
# Public URL of the frontend
|
|
NEXT_PUBLIC_APP_URL=http://localhost:3000
|
|
|
|
# Internal service URLs (server-side only, BFF pattern)
|
|
AUTH_SERVICE_URL=http://localhost:4000
|
|
CHAT_API_URL=http://localhost:8000
|
|
|
|
# NextAuth.js v5 — generate with: openssl rand -base64 32
|
|
NEXTAUTH_SECRET=change-me-in-production
|
|
AUTH_TRUST_HOST=true
|
|
|
|
# OAuth providers
|
|
GOOGLE_CLIENT_ID=
|
|
GOOGLE_CLIENT_SECRET=
|
|
GITHUB_CLIENT_ID=
|
|
GITHUB_CLIENT_SECRET=
|