normalize biome config (lineWidth 80, quoteStyle double), switch server to bun native, add CLAUDE.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 23:01:11 +01:00
parent 08393cd7cd
commit 35fbb1b47d
40 changed files with 1053 additions and 547 deletions

52
CLAUDE.md Normal file
View File

@@ -0,0 +1,52 @@
# movie-select — Collaborative Movie Picker
Collaborative movie selection app where groups vote on movies to watch together.
## Stack
- **Frontend:** React 19, Vite, Tailwind CSS 4, TanStack Router, TanStack Query
- **Backend:** Hono (Bun), Drizzle ORM, PostgreSQL
- **Linting:** Biome 2.x (tabs, 80 chars, double quotes)
## Project Structure
```
src/
├── client/ ← React SPA (routes/, components/, hooks/, lib/)
├── server/ ← Hono API (features/, shared/)
└── shared/ ← isomorphic code (types, algorithms)
```
## Local Development
```bash
bun install
bun run dev # frontend (Vite)
bun run dev:server # backend (Bun --watch)
```
## Deployment
```bash
./deploy.sh
```
Deploys to Uberspace (`serve.uber.space`):
- Frontend → `/var/www/virtual/serve/html/movie-select/`
- Backend → `~/services/movie-select/` (systemd: `movie-select.service`, port 3003)
- Route: `/movie-select/api/*` → port 3003 (prefix removed)
## Environment Variables
See `.env.example`:
- `DATABASE_URL` — PostgreSQL connection string
- `PORT` — server port (default 3003)
## Database
PostgreSQL via Drizzle ORM. Migrations in `drizzle/`.
```bash
bun run db:generate
bun run db:migrate
```