AGENTS.md is the authoritative agent guide: house rules, approved dependencies, quality floor, repository layout, branch and merge conventions, where context and work tracking live, GLOSSARY vocabulary and the rule never to use tea. CLAUDE.md imports it. README gives the purpose and a make dev quick start. docs/ARCHITECTURE.md mirrors the CTXD CONTEXT.MD architecture section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
51 lines
2.4 KiB
Markdown
51 lines
2.4 KiB
Markdown
# MealQuest
|
|
|
|
MealQuest is a mobile-first Progressive Web App for weekly dinner planning for
|
|
one household. The household lists the dinners it makes regularly, an AI
|
|
assistant suggests new dinners to try (swipe "Try it" or "Pass"), and the app
|
|
builds a weekly plan, pushes it to Google Calendar, and generates a shopping
|
|
list grouped by dinner, kept as a browsable weekly history. It ships as a
|
|
single Go service with the React PWA embedded in the binary.
|
|
|
|
> Status: this repository is the Feature 01 scaffold (Go service with
|
|
> `/health`, embedded PWA skeleton, Makefile, Dockerfile, CI). The planned
|
|
> application is described in [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md).
|
|
|
|
## Quick start
|
|
|
|
Requirements: Go 1.25 and Node.js 22.
|
|
|
|
```sh
|
|
(cd web && npm ci)
|
|
mkdir -p ~/.mealquest-dev # outside the repository: it holds a secret
|
|
head -c 32 /dev/urandom | base64 > ~/.mealquest-dev/secret_key
|
|
export MEALQUEST_HTTP_ADDR=:8080
|
|
export MEALQUEST_PUBLIC_URL=http://localhost:5173
|
|
export MEALQUEST_DATA_DIR="$HOME/.mealquest-dev"
|
|
export MEALQUEST_SHUTDOWN_TIMEOUT=10s
|
|
export MEALQUEST_SECRET_KEY_FILE="$HOME/.mealquest-dev/secret_key"
|
|
make dev
|
|
```
|
|
|
|
`make dev` runs the Go server on `:8080` and the Vite dev server on `:5173`
|
|
(which proxies `/api`, `/auth` and `/media` to `:8080`). Open
|
|
http://localhost:5173. Configuration is environment-only and fails fast:
|
|
every variable above is required, and secrets are read only from files named
|
|
by `*_FILE` variables.
|
|
|
|
## Common commands
|
|
|
|
| Command | What it does |
|
|
| -------------- | --------------------------------------------------------------- |
|
|
| `make dev` | Go server plus Vite dev server. |
|
|
| `make test` | `gofmt` check, `go vet`, `go test -race`, web typecheck and tests. |
|
|
| `make build` | Build the PWA, embed it, build the static binary `bin/mealquest`. |
|
|
| `make docker` | Build the container image from the root `Dockerfile`. |
|
|
|
|
## Where to read next
|
|
|
|
- [AGENTS.md](AGENTS.md) — house rules, approved dependencies, conventions.
|
|
- [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) — architecture of record.
|
|
- [design/MealQuest Requirements.md](design/MealQuest%20Requirements.md) — product requirements.
|
|
- [design/MealQuest UI Designs/design_handoff_mealquest/README.md](design/MealQuest%20UI%20Designs/design_handoff_mealquest/README.md) — UI handoff.
|