No description
- TypeScript 98.4%
- CSS 0.7%
- HTML 0.4%
- Dockerfile 0.4%
|
All checks were successful
Build and Push Image / build (push) Successful in 18s
|
||
|---|---|---|
| .forgejo/workflows | ||
| scripts | ||
| src | ||
| web | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| AGENTS.md | ||
| bun.lock | ||
| Dockerfile | ||
| package.json | ||
| README.md | ||
| todo.md | ||
| tsconfig.json | ||
findley.recipes
Family recipe database
Config
Configuration is done via environment variables. See <.env.example>.
Local development
$ bun install
$ bun dev
Set VITE_API_BASE_URL to http://localhost:3000 in ./src/web/.env.
$ cd ./web
$ npm run dev
Release / Deployment
- Run
bun tagto create a release tag. - Push the tag to trigger a docker build.
- Manually update to the new image on findley.dev server
Docker build
$ docker build -t findley.recipes .
$ docker run -p 3000:3000 --env-file ./.env -v ./data:/app/data findley.recipes
Importing recipe data
Use the /api/db.json endpoint of the production server to export all recipes
as JSON.
Import the recipes into a fresh database by running:
$ bun run ./scripts/import.ts db.json