Krys4lide/crates/app
2024-08-08 22:18:26 +02:00
..
assets refacto: add alpinejs, flowbite and htmx to app assets with explicit versions 2024-08-06 21:30:14 +02:00
css feat: Setup Tailwind CSS 2024-08-06 21:11:04 +02:00
src feat: Add auto-reload on development environment 2024-08-08 22:18:26 +02:00
templates refacto: add alpinejs, flowbite and htmx to app assets with explicit versions 2024-08-06 21:30:14 +02:00
.gitignore feat: Setup Tailwind CSS 2024-08-06 21:11:04 +02:00
Cargo.toml feat: Add auto-reload on development environment 2024-08-08 22:18:26 +02:00
README.md feat: Add auto-reload on development environment 2024-08-08 22:18:26 +02:00
tailwind.config.js feat: Setup Tailwind CSS 2024-08-06 21:11:04 +02:00

Pré-requis

Exécution

  • Lancer tailwindcss en mode watch dans un terminal :
./tailwindcss -i css/input.css -o assets/css/style.css --watch
  • Lancer le serveur web dans un autre terminal :
cargo run --bin app

L'auto-reload

Pour permettre au projet de s'auto-recharger lors du développement, nous avons besoin de 2 librairies :

cargo install cargo-watch systemfd

Pour recompiler automatiquement le serveur lors de changement :

systemfd --no-pid -s http::3000 -- cargo watch -x 'run --bin app'