43 lines
810 B
Markdown
43 lines
810 B
Markdown
source : https://github.com/Oishh/leptos-axum-tailwind-start
|
|
|
|
wasm-pack build --target=web --debug --no-default-features --features=hydrate
|
|
cargo run --no-default-features --features=ssr
|
|
|
|
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
|
|
```
|
|
|
|
# dev
|
|
source .env
|
|
cargo sqlx migrate run
|
|
cargo leptos watch
|
|
|
|
npx tailwindcss -i ./input.css -o ./style/output.css --watch
|
|
|
|
## features
|
|
[x] ssr
|
|
[x] MySQL
|
|
[x] tailwindcss
|
|
[x] router
|
|
[ ] value gestion des erreurs
|
|
[ ] deploy
|
|
|
|
## pages
|
|
[ ] liens
|
|
[ ] formulaire
|
|
[ ] recap capteurs
|
|
|
|
|
|
// https://github.com/Bechma/realworld-leptos
|