feat: align docs with code, finish_place, registered status, UI filters, tests, CI
Some checks failed
CI / build-and-test (pull_request) Has been cancelled
Some checks failed
CI / build-and-test (pull_request) Has been cancelled
- Add PLAN.md and sync backend docs, .env.example, API doc (404 details) - Document mock DB and PORT/API_PORT in docs/backend.md; README monorepo + frontend/.env.example - Migration 002: finish_place column, status registered; mapper and mock DB updated - Frontend: registered status, finishPlace, calendar year/month filters, pace sparkline - Extract createApp for tests; supertest + tsx; GitHub Actions CI Made-with: Cursor
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
# ─── PostgreSQL ───────────────────────────────────────────────
|
||||
# Не обязательны, если CALENDAR_RUN_MOCK_DB=1 (только HTTP API без БД).
|
||||
DB_HOST=localhost
|
||||
DB_PORT=5432
|
||||
DB_NAME=calendar_run
|
||||
@@ -6,9 +7,13 @@ DB_USER=calendar_user
|
||||
DB_PASSWORD=calendar_pass
|
||||
|
||||
# ─── Backend API ──────────────────────────────────────────────
|
||||
# Port the API server listens on
|
||||
# Порт: сначала читается PORT (если задан), иначе API_PORT, иначе 3001.
|
||||
# PORT=3001
|
||||
API_PORT=3001
|
||||
|
||||
# ─── Dev/CI: без PostgreSQL для smoke API (не для migrate/seed) ─
|
||||
# CALENDAR_RUN_MOCK_DB=1
|
||||
|
||||
# ─── CORS ─────────────────────────────────────────────────────
|
||||
# Allowed origin for the frontend (Vite dev server default)
|
||||
CORS_ORIGIN=http://localhost:5173
|
||||
|
||||
Reference in New Issue
Block a user