saffron wren
Next.js serviceRecipes, scaled to your table. Pick one, then set how many people are eating.
- Saffron rice with peas
Buttery basmati, golden with saffron, studded with green peas.
- Red lentil soup
A thick, warming soup with cumin and a squeeze of lemon.
- Buttermilk pancakes
Tall, tender pancakes for a slow weekend breakfast.
- Shakshuka
Eggs poached in a spiced tomato and pepper sauce.
- Plum sheet cake
A late-summer tray cake, plums pressed into a soft sponge.
- Rosemary roast potatoes
Crisp edges, soft middles, garlic and rosemary.
How it runs
- There is no Dockerfile. Tori finds
nextinpackage.json, runsnpm run buildand thennpm start, which isnext starton port 8080. - Pages are drawn by the server on each request. The servings control on a recipe page is a client component: it rescales the list in the browser, with the same code the server uses.
- The same numbers come as JSON from the API, for example
/api/recipes/shakshuka?servings=6.
Deploy your own
With Node.js installed:
git clone https://github.com/tori-host/examples
cd examples/saffron-wren
npx tori.hostThe build runs on Tori, so nothing needs installing first. The first run creates a service under a new name of its own and writes it to tori.json, so that the next run updates the same service.