- JavaScript 63.7%
- EJS 22.7%
- CSS 12.3%
- Dockerfile 1.3%
|
All checks were successful
deploy / deploy (push) Successful in 15s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .forgejo/workflows | ||
| public | ||
| src | ||
| test | ||
| views | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| DECISIONS.md | ||
| docker-compose.yml | ||
| Dockerfile | ||
| package-lock.json | ||
| package.json | ||
| PROMPT.md | ||
| README.md | ||
The Wishlist
A simple family gift-exchange site. Everyone keeps a wishlist (add items by pasting a product link), and everyone else can claim items, mark them purchased, and comment — without the list's owner seeing any of it.
Run with Docker
cp .env.example .env # set ADMIN_PASSWORD (and optionally REGISTRATION_CODE)
docker compose up -d --build
Open http://localhost:3000 and sign in as the admin (admin / your ADMIN_PASSWORD).
If ADMIN_PASSWORD is empty, a random one is printed in docker compose logs.
Data (SQLite database + downloaded product images) lives in the wishlist-data volume.
On a VPS, put it behind a TLS reverse proxy (Caddy, nginx, Traefik), set TRUST_PROXY=true, and
bind the port to localhost (127.0.0.1:3000:3000 in docker-compose.yml).
Back up: docker run --rm -v wishlist_wishlist-data:/data -v "$PWD":/out alpine tar czf /out/wishlist-backup.tgz -C /data .
Run locally without Docker
Requires Node 22.13+ (24 recommended).
npm install
npm start # http://localhost:3000, data in ./data
npm test # scraper unit tests
Configuration (environment variables)
| Variable | Default | Purpose |
|---|---|---|
ADMIN_USERNAME / ADMIN_PASSWORD |
admin / random |
Admin created on first run if no admin exists |
REGISTRATION_CODE |
(none) | If set, new people must enter this code to register |
ALLOW_REGISTRATION |
true |
false closes self-registration (admin adds people) |
ALLOWED_HOSTS |
(any) | Comma-separated hostnames/IPs (no port) the site answers to; others get 421 |
TRUST_PROXY |
(none) | true when behind a reverse proxy |
PORT, DATA_DIR |
3000, ./data (/data in Docker) |
See DECISIONS.md for design decisions and assumptions.