Monorepo layout:
- backend/ — Rails 8 API (PostgreSQL + pgvector, Sidekiq, OpenAI embeddings). See backend/README.md.
- frontend/ — Next.js 16 + HeroUI UI for book search and similar books. See frontend/README.md.
- data/ — Open Library raw dumps, processed CSV exports, and Postgres dumps. See data/README.md.
- scripts/ — Python ETL (
download_ol_dumps.py,export_ol_top_books.py,resolve_curated_works.py, etc.). - deployment/ — Production Docker Compose (Caddy, GHCR, GitHub Actions deploy to a VPS). See deployment/README.md.
- Backend (from
backend/): Docker Compose,./bin/db-reset,bin/rails serveron port 3000. - Frontend (from
frontend/): copy.env.exampleto.env.local, setCORS_ORIGINSon the backend to includehttp://localhost:3001, thennpm installandnpm run dev(defaults to port 3001).