Getting Started¶
Prerequisites¶
- Go 1.24+
- templ CLI
Install the templ code generator:
Build¶
This runs templ generate to produce Go code from .templ files, then compiles the binary to bin/recipebox.
Run the Web Server¶
Open http://localhost:8080 in your browser. From there you can:
- Import a recipe by navigating to the Import page and pasting a recipe URL
- Browse your saved recipes on the Browse page
- Search for recipes using the search bar on the Home page
Import a Recipe¶
Navigate to http://localhost:8080/import, paste a recipe URL, and click Import Recipe. RecipeBox supports:
- Any site with JSON-LD structured data (schema.org/Recipe)
- Sites using WP Recipe Maker (WPRM) plugin
WPRM Print URLs
For WP Recipe Maker sites, the print URL format (/wprm_print/recipe-slug) often works best for scraping.
Docker¶
You can also run RecipeBox via Docker:
This builds and starts the app on port 8080 with a persistent volume for the database.
Development¶
For hot-reloading during development, use Air:
Air watches .go, .templ, .sql, and .yaml files, automatically regenerates templ templates, and rebuilds on changes.
You can also manually regenerate and rebuild: