Logiciel de pharmacie
assets | ||
src | ||
src-tauri | ||
templates | ||
.gitignore | ||
askama.toml | ||
Cargo.toml | ||
README.md | ||
tailwind.config.js |
Krys4lide
Logiciel de pharmacie
Development
Prerequisites
- Rust
- Node.js
- npm
- TailwindCSS Standalone (Latest binaries)
- Make the binary available in your PATH as
tailwindcss
command
- Make the binary available in your PATH as
Setup
cargo install cargo-watch
cargo install tauri-cli --version "^2.0.0-beta"
Run
Run the TailwindCSS watcher
To watch for changes in the CSS & HTML files and update the style.css file accordingly, run the following command:
tailwindcss -i ./templates/assets/css/input.css -o ./assets/css/style.css --watch
Run the application - in Tauri
cargo tauri dev
Run the application - in the browser
cargo watch -x run
Production
Build - in Tauri
- [] TODO : Fix the assets missing in the final build
tailwindcss -i ./templates/assets/css/input.css -o ./assets/css/style.css --minify
cargo tauri build
Build - in the browser
tailwindcss -i ./templates/assets/css/input.css -o ./assets/css/style.css --minify
cargo build --release