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:
2026-05-14 22:35:19 +02:00
commit 311d35fac0
12 changed files with 1370 additions and 0 deletions

5
.env.example Normal file
View 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