recipes/README.md

1.6 KiB

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.

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