updating documentation, prettier format
This commit is contained in:
parent
039ed50567
commit
e534b98bc5
16 changed files with 1271 additions and 1070 deletions
56
README.md
56
README.md
|
|
@ -26,9 +26,8 @@ docker compose up -d
|
|||
pnpm --filter @lila/shared build
|
||||
pnpm --filter @lila/db build
|
||||
|
||||
# 5. Run migrations and seed data
|
||||
# 5. Run migrations
|
||||
pnpm --filter @lila/db migrate
|
||||
pnpm --filter @lila/db seed
|
||||
|
||||
# 6. Start dev servers
|
||||
pnpm dev
|
||||
|
|
@ -36,39 +35,40 @@ pnpm dev
|
|||
|
||||
API: `http://localhost:3000` · Web: `http://localhost:5173`
|
||||
|
||||
See [DEPLOYMENT.md](DEPLOYMENT.md) for production infrastructure details.
|
||||
See [DEPLOYMENT.md](documentation/DEPLOYMENT.md) for production infrastructure details.
|
||||
|
||||
---
|
||||
|
||||
## Documentation Index
|
||||
|
||||
| Document | What you'll find there |
|
||||
| -------------------------------------------- | ----------------------------------------------------------------------- |
|
||||
| [STATUS.md](STATUS.md) | Current state — what's working, what's blocked, what we're building now |
|
||||
| [BACKLOG.md](BACKLOG.md) | Prioritized task list: now / next / later / changelog |
|
||||
| [ARCHITECTURE.md](ARCHITECTURE.md) | Monorepo structure, layered architecture, data flow |
|
||||
| [DECISIONS.md](DECISIONS.md) | Why we chose X over Y — tool choices, schema design, trade-offs |
|
||||
| [DATA_PIPELINE.md](DATA_PIPELINE.md) | Kaikki → CEFR enrichment → production PostgreSQL |
|
||||
| [MODEL_STRATEGY.md](MODEL_STRATEGY.md) | LLM voter architecture for sense-disambiguated CEFR assignment |
|
||||
| [LLM_SETUP.md](LLM_SETUP.md) | Local and cloud LLM provider configuration |
|
||||
| [DEPLOYMENT.md](DEPLOYMENT.md) | Hetzner VPS, Caddy, Docker Compose, CI/CD, backups |
|
||||
| [design/GAME_MODES.md](design/GAME_MODES.md) | Planned multiplayer and singleplayer game modes |
|
||||
| Document | What you'll find there |
|
||||
| -------------------------------------------------------------- | ----------------------------------------------------------------------- |
|
||||
| [STATUS.md](documentation/STATUS.md) | Current state — what's working, what's blocked, what we're building now |
|
||||
| [BACKLOG.md](documentation/BACKLOG.md) | Prioritized task list: now / next / later / changelog |
|
||||
| [ARCHITECTURE.md](documentation/ARCHITECTURE.md) | Monorepo structure, layered architecture, data flow |
|
||||
| [DECISIONS.md](documentation/DECISIONS.md) | Why we chose X over Y — tool choices, schema design, trade-offs |
|
||||
| [DATA_PIPELINE.md](documentation/DATA_PIPELINE.md) | Gemini → SQLite staging → PostgreSQL: flow, current state, phase status |
|
||||
| [pipeline/design-doc.md](documentation/pipeline/design-doc.md) | Schema design, difficulty model, query patterns, Gemini JSON contract |
|
||||
| [pipeline/roadmap.md](documentation/pipeline/roadmap.md) | Phase plan for the pipeline and schema migration |
|
||||
| [DEPLOYMENT.md](documentation/DEPLOYMENT.md) | Hetzner VPS, Caddy, Docker Compose, CI/CD, backups |
|
||||
| [design/GAME_MODES.md](documentation/design/GAME_MODES.md) | Planned multiplayer and singleplayer game modes |
|
||||
| [archive/](documentation/archive/) | Superseded docs — the removed local-LLM pipeline, CEFR voter strategy |
|
||||
|
||||
---
|
||||
|
||||
## Stack
|
||||
|
||||
| Layer | Technology |
|
||||
| ---------- | ------------------------------------------------------------- |
|
||||
| Monorepo | pnpm workspaces |
|
||||
| Frontend | React 18, Vite, TanStack Router, TanStack Query, Tailwind CSS |
|
||||
| Backend | Node.js, Express, TypeScript, WebSockets (`ws`) |
|
||||
| Database | PostgreSQL + Drizzle ORM |
|
||||
| Auth | Better Auth (Google + GitHub) |
|
||||
| Validation | Zod (shared between frontend and backend) |
|
||||
| Testing | Vitest, supertest |
|
||||
| Deployment | Docker Compose, Caddy, Hetzner VPS |
|
||||
| CI/CD | Forgejo Actions |
|
||||
| Layer | Technology |
|
||||
| ---------- | ----------------------------------------------- |
|
||||
| Monorepo | pnpm workspaces |
|
||||
| Frontend | React 19, Vite, TanStack Router, Tailwind CSS |
|
||||
| Backend | Node.js, Express, TypeScript, WebSockets (`ws`) |
|
||||
| Database | PostgreSQL + Drizzle ORM |
|
||||
| Auth | Better Auth (Google + GitHub) |
|
||||
| Validation | Zod (shared between frontend and backend) |
|
||||
| Testing | Vitest, supertest |
|
||||
| Deployment | Docker Compose, Caddy, Hetzner VPS |
|
||||
| CI/CD | Forgejo Actions |
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -78,10 +78,10 @@ See [DEPLOYMENT.md](DEPLOYMENT.md) for production infrastructure details.
|
|||
- ✅ Multiplayer lobby + real-time game (2–4 players, simultaneous answers, 15s timer)
|
||||
- ✅ Auth (Google + GitHub)
|
||||
- ✅ Live deployment with CI/CD
|
||||
- 🔄 Migrating vocabulary data from OpenWordNet to **Kaikki** (sense-disambiguated translations)
|
||||
- 🔄 Rewriting the vocabulary data pipeline around **Gemini** + a sense-based schema
|
||||
- 🔄 Phase 7 hardening (rate limiting, error boundaries, monitoring)
|
||||
|
||||
See [STATUS.md](STATUS.md) for the full picture.
|
||||
See [STATUS.md](documentation/STATUS.md) for the full picture.
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -95,7 +95,7 @@ lila/
|
|||
├── packages/
|
||||
│ ├── shared/ — Zod schemas + constants (API/web contract)
|
||||
│ └── db/ — Drizzle schema, migrations, models, seeding
|
||||
├── data-pipeline/ — Kaikki extraction → enrichment → PostgreSQL sync
|
||||
├── data-pipeline/ — Gemini generation → SQLite staging → PostgreSQL
|
||||
├── documentation/ — Project docs (this directory)
|
||||
└── Caddyfile, docker-compose.yml, etc.
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue