47 lines
967 B
Markdown
47 lines
967 B
Markdown
wasm-pack build --target=web --debug --no-default-features --features=hydrate
|
|
cargo run --no-default-features --features=ssr
|
|
|
|
# dev
|
|
source .env
|
|
cargo sqlx migrate run
|
|
cargo leptos watch
|
|
|
|
npx tailwindcss -i ./input.css -o ./style/output.css --watch
|
|
|
|
# deploy
|
|
|
|
example of systemd config
|
|
```
|
|
[Unit]
|
|
Description=Running rust script
|
|
After=multi-user.target
|
|
|
|
[Service]
|
|
EnvironmentFile=/home/pi/Scripts/rust_mosquitto/target/release/.env
|
|
ExecStart=/home/pi/Scripts/rust_mosquitto/target/release/rust_mosquitto
|
|
Type=simple
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
```
|
|
|
|
## features
|
|
[x] ssr
|
|
[x] MySQL
|
|
[x] tailwindcss
|
|
[x] router
|
|
[ ] value gestion des erreurs
|
|
[x] deploy
|
|
|
|
## pages
|
|
[x] liens
|
|
[x] formulaire
|
|
[ ] recap capteurs
|
|
|
|
## style
|
|
[Simple dark dashboard](https://dribbble.com/shots/10090105-Dashboard-UI/attachments/2097885?mode=media)
|
|
|
|
## helps
|
|
[Leptos starter kit](https://github.com/Oishh/leptos-axum-tailwind-start)
|
|
[Leptos blog](https://github.com/Bechma/realworld-leptos)
|