A little cooking recipes website
Find a file
2026-01-25 15:04:04 +01:00
.cargo Update dependencies and put some in the workspace cargo.toml 2026-01-25 15:04:04 +01:00
backend Update dependencies and put some in the workspace cargo.toml 2026-01-25 15:04:04 +01:00
common Update dependencies and put some in the workspace cargo.toml 2026-01-25 15:04:04 +01:00
doc Add a commented line to systemd service launch script to use jemalloc 2025-05-06 00:36:52 +02:00
frontend Update dependencies and put some in the workspace cargo.toml 2026-01-25 15:04:04 +01:00
stress_tests Replace Rinja by askama 2025-03-26 13:19:16 +01:00
.gitattributes Replace PUT method by the more appropriate PATCH method. 2025-03-18 20:02:30 +01:00
.gitignore Remove a local file from .gitignore 2025-04-29 13:15:33 +02:00
Cargo.lock Update dependencies and put some in the workspace cargo.toml 2026-01-25 15:04:04 +01:00
Cargo.toml Update dependencies and put some in the workspace cargo.toml 2026-01-25 15:04:04 +01:00
do.nu Export watch-scss command and allow arguments to be pass to the run command 2026-01-14 01:43:19 +01:00
README.md List the available commands in README.md 2026-01-01 14:34:12 +01:00

Recipes is a multi-user website to manage and publish cooking recipes.

Prerequisites

Run in debug mode

$> nu do.nu run

Then browse http://127.0.0.1:8082

At first launch the configuration file backend/conf.ron is created. It contains the port the server will listen to and information about the SMTP server which will be used to send email when a user sign up or change its password.

You can also import all functions in the current shell from do.nu with the following command.

$> source do.nu

And then use one of these commands:

  • build
  • run
  • test
  • doc

Autoreload

First install cargo watch:

$> cargo install cargo-watch

In directory backend type:

$> cargo watch -x run

How-to

How to install service on a Linux server (with systemd)

As root:

  1. Copy doc/recipes.service to /lib/systemd/system/
  2. Change the values of User, WorkingDirectory and ExecStart.
  3. Enabled it: #> systemctl enable recipes
  4. Launch it: #> systemctl start recipes

Cross compile for Raspberry PI on Windows

Useful URLs

Useful tools