Files
pwa/README.md
T
ar.badieiandCursor 370ac15471 Ship Novya PWA with backend for deployable production use.
Fix production TypeScript builds and add DEPLOY.md so the app can be hosted from this repo.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-03 21:01:52 +03:30

41 lines
911 B
Markdown

# Novya PWA
Persian learning PWA (React + Vite) with a Node/Hono backend and MySQL.
## Quick start (local)
```bash
# MySQL (optional helper)
cd backend && docker compose -f docker-compose.dev.yml up -d && cd ..
# Install
npm install
cd backend && npm install && cd ..
# Env
cp .env.example .env
cp backend/.env.example backend/.env
# fill OPENAI_API_KEY in backend/.env
# Migrate + seed (once)
cd backend && npm run prisma:migrate:dev && npm run prisma:seed && cd ..
# Dev (API + frontend)
npm run dev
```
- Frontend: http://localhost:5173
- Backend: http://localhost:3001
## Production
See **[DEPLOY.md](./DEPLOY.md)** for env vars, build, and reverse-proxy notes.
Backend details: [backend/README.md](./backend/README.md)
## Stack
- Frontend: React 18, TypeScript, Tailwind, PWA
- Backend: Hono, Prisma, MySQL 8, Argon2 sessions
- AI coach: OpenAI-compatible API (default GapGPT) via backend