init: HejYou API Server (Hono + Node.js + TypeScript)
Thin proxy between React app and Directus. Admin token stays server-side; clients get own 30-day JWTs. Endpoints: /auth/* register/login/profile/me, /words, /questions, /qa-pairs, /pair, /progress, /assets/:fileId Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
5
.env.example
Normal file
5
.env.example
Normal file
@@ -0,0 +1,5 @@
|
||||
DIRECTUS_URL=https://db.hejyou.com
|
||||
DIRECTUS_ADMIN_TOKEN=your-admin-token-here
|
||||
JWT_SECRET=generate-a-long-random-string-here
|
||||
PORT=3000
|
||||
CORS_ORIGIN=https://app.hejyou.com
|
||||
Reference in New Issue
Block a user