Remove generated file 'frontend.js'
[recipes.git] / README.md
1 # Use cases
2
3 ## Create a recipe
4
5 To create a recipe the user must have an account.
6
7 * The user
8 (A group is automatically created)
9
10 ## Create a groupe
11
12 ## Move a group
13
14 ## Delete a group
15
16 ## Create a step
17
18 ## Move a step
19
20 ## Delete a step
21
22 # Technical
23
24 ## Cross-compilation on Windows 11
25
26 The toolchain for Raspberry Pi 64 bits is available here: https://gnutoolchains.com/raspberry64/
27
28 ## How to install service on RPI Zero
29
30 1. Copy doc/recipes.service to /lib/systemd/system
31 2. Enabled it: #> systemctl enable recipes
32
33 ## Backend
34
35 Autoreload: https://actix.rs/docs/autoreload/
36
37 ### Frontend
38
39 ## WebAssembly
40
41 'frontend' project needs some tools to generate the WebAssembly stuff. Everything is explained here: https://rustwasm.github.io/wasm-bindgen/examples/hello-world.html
42
43 To compile run 'wasm-pack build' in 'frontend' directory
44 To launch node run 'npm run start' in 'frontend/www' directory
45
46 ## Useful URLs
47
48 * Rust patterns : https://github.com/rust-unofficial/patterns/tree/master/patterns
49 * Rusqlite (SQLite) : https://docs.rs/rusqlite/0.20.0/rusqlite/
50 * Node install: https://nodejs.org/en/download/
51
52
53