A little cooking recipes website
Find a file
2022-12-07 00:16:34 +01:00
.cargo Sign up form and other stuff 2022-11-26 12:26:05 +01:00
backend Add frontend tests and other stuff 2022-12-07 00:16:34 +01:00
common Sign up form and other stuff 2022-11-26 12:26:05 +01:00
frontend Add frontend tests and other stuff 2022-12-07 00:16:34 +01:00
.gitignore Add frontend tests and other stuff 2022-12-07 00:16:34 +01:00
Cargo.lock Add frontend tests and other stuff 2022-12-07 00:16:34 +01:00
Cargo.toml Add frontend tests and other stuff 2022-12-07 00:16:34 +01:00
deploy.nu Replace powershell script by nushell script 2022-11-25 00:50:01 +01:00
README.md Add frontend tests and other stuff 2022-12-07 00:16:34 +01:00
TODO.md Add frontend tests and other stuff 2022-12-07 00:16:34 +01:00

Use cases

Create a recipe

To create a recipe the user must have an account.

  • The user (A group is automatically created)

Create a groupe

Move a group

Delete a group

Create a step

Move a step

Delete a step

Technical

Cross-compilation on Windows 11

The toolchain for Raspberry Pi 64 bits is available here: https://gnutoolchains.com/raspberry64/

How to install service on RPI Zero

  1. Copy doc/recipes.service to /lib/systemd/system
  2. Enabled it: #> systemctl enable recipes

Backend

Autoreload: https://actix.rs/docs/autoreload/

Frontend

WebAssembly

'frontend' project needs some tools to generate the WebAssembly stuff. Everything is explained here: https://rustwasm.github.io/wasm-bindgen/examples/hello-world.html

To compile run 'wasm-pack build' in 'frontend' directory To launch node run 'npm run start' in 'frontend/www' directory

Useful URLs