A little cooking recipes website
Find a file
2024-12-21 23:13:06 +01:00
.cargo Replace Rusqlite by Sqlx and Actix by Axum (A lot of changes) 2024-11-03 10:13:31 +01:00
backend Recipe edit (WIP) 2024-12-21 23:13:06 +01:00
common User profile edit page 2024-12-17 21:28:47 +01:00
doc WIP... 2023-04-10 09:35:10 +02:00
frontend User profile edit page 2024-12-17 21:28:47 +01:00
.gitignore Add a way to reset password (WIP) 2024-11-06 17:52:16 +01:00
Cargo.lock Recipe edit (WIP) 2024-12-21 23:13:06 +01:00
Cargo.toml Replace Rusqlite by Sqlx and Actix by Axum (A lot of changes) 2024-11-03 10:13:31 +01:00
check_cargo_dependencies_upgrade.nu Replace Rusqlite by Sqlx and Actix by Axum (A lot of changes) 2024-11-03 10:13:31 +01:00
deploy.nu Compile frontend when deploying 2024-12-05 01:10:42 +01:00
README.md User profile edit page 2024-12-17 21:28:47 +01:00
TODO.md User profile edit page 2024-12-17 21:28:47 +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 TODO MVC Example: https://github.com/rustwasm/wasm-bindgen/tree/main/examples/todomvc -> https://rustwasm.github.io/wasm-bindgen/exbuild/todomvc/#/

Javascript bundler: https://rspack.dev/

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

Useful URLs

Tools

Benchmarking: https://crates.io/crates/oha HTTP API tool: https://www.usebruno.com/