No description
- Vue 66.8%
- TypeScript 32.3%
- CSS 0.5%
- Dockerfile 0.2%
- JavaScript 0.1%
- Other 0.1%
| .agents/skills/full-code-review | ||
| .husky | ||
| .vscode | ||
| app | ||
| docs | ||
| public | ||
| scripts | ||
| server | ||
| shared/utils | ||
| .dockerignore | ||
| .editorconfig | ||
| .enc.local.env | ||
| .enc.staging.env | ||
| .env.example | ||
| .gitignore | ||
| .sops.yaml | ||
| AGENTS.md | ||
| components.json | ||
| docker-compose.dockiy.yml | ||
| docker-compose.yml | ||
| Dockerfile | ||
| dockiy.config.yml | ||
| dockiy.yml | ||
| drizzle.config.ts | ||
| eslint.config.mjs | ||
| nuxt.config.ts | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| tsconfig.json | ||
Chrisp Books
A self-hosted alternative to Goodreads for a handful of users. Search books, keep private reading lists, browse authors and series, and import your existing library. Book data comes from Open Library, no API key needed.
Built with Nuxt, Better Auth and PostgreSQL. Everything runs in two containers: the app and the database.
Requirements
- Node.js 24+ and pnpm 11+
- Docker Engine and Docker Compose
- A Brevo account for sign-up and password reset emails
Local development
cp .env.example .env
# Edit .env (see Configuration), then:
docker compose up -d
pnpm install --frozen-lockfile
pnpm db:migrate
pnpm dev
The app runs on http://localhost:3000. pgAdmin is available on
http://localhost:82 (login admin@m.com / admin, database host db:5432).
Configuration
| Variable | Description |
|---|---|
POSTGRES_DB, POSTGRES_USER, POSTGRES_PASSWORD |
Database credentials |
POSTGRES_DOCKER_PORT |
Database port exposed on the host |
NUXT_DATABASE_URL |
postgresql://USER:PASSWORD@HOST:5432/DATABASE (URL-encode credentials). Inside containers the host is db and the port is always 5432 |
NUXT_BETTER_AUTH_SECRET |
Output of openssl rand -base64 32, one per environment |
NUXT_BETTER_AUTH_URL |
Public origin of the app, e.g. http://localhost:3000 |
NUXT_BREVO_API_KEY, NUXT_BREVO_SENDER_EMAIL, NUXT_BREVO_SENDER_NAME |
Brevo credentials and verified sender |
NUXT_GOOGLE_CLIENT_ID, NUXT_GOOGLE_CLIENT_SECRET |
Optional, enables Google sign-in |
NUXT_OPEN_LIBRARY_CONTACT |
Optional contact email sent to Open Library to identify your instance |
Google sign-in (optional)
- In Google Cloud Console, configure Google Auth Platform → Branding / Audience.
- Under Clients, create a Web application OAuth client with
<your origin>/api/auth/callback/googleas an authorized redirect URI. - Set
NUXT_GOOGLE_CLIENT_IDandNUXT_GOOGLE_CLIENT_SECRET.NUXT_BETTER_AUTH_URLmust match the origin exactly.
Deploying with DockIY
The project is deployable with DockIY. Set your app name
and hosts in dockiy.yml, create .enc.staging.env / .enc.production.env
with sops edit, then:
dockiy app deploy staging
dockiy app deploy production --version v1.0.0
Migrations are applied automatically on deploy.
- DockIY installation (including the SOPS / age setup)
- Nuxt + Better Auth template guide
- Template source on Codeberg