2024-07-01 22:22:50 +02:00
|
|
|
# Krys4lide
|
|
|
|
|
2024-07-03 17:41:18 +02:00
|
|
|
Logiciel de pharmacie
|
|
|
|
|
|
|
|
## Development
|
|
|
|
|
|
|
|
### Prerequisites
|
|
|
|
|
2024-07-03 18:43:35 +02:00
|
|
|
- [Rust](https://www.rust-lang.org/tools/install)
|
|
|
|
- [Node.js](https://nodejs.org/en/download/)
|
|
|
|
- [npm](https://www.npmjs.com/get-npm)
|
|
|
|
- [TailwindCSS Standalone](https://tailwindcss.com/blog/standalone-cli) ([Latest binaries](https://github.com/tailwindlabs/tailwindcss/releases/latest))
|
|
|
|
- Make the binary available in your PATH as `tailwindcss` command
|
|
|
|
|
|
|
|
### Setup
|
|
|
|
|
2024-07-03 17:41:18 +02:00
|
|
|
```shell
|
|
|
|
cargo install cargo-watch
|
2024-07-03 20:11:25 +02:00
|
|
|
cargo install tauri-cli --version "^2.0.0-beta"
|
2024-07-03 17:41:18 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
### Run
|
|
|
|
|
2024-07-03 20:11:25 +02:00
|
|
|
#### Run the TailwindCSS watcher
|
|
|
|
|
|
|
|
To watch for changes in the CSS & HTML files and update the style.css file accordingly, run the following command:
|
2024-07-03 18:43:35 +02:00
|
|
|
|
2024-07-03 17:41:18 +02:00
|
|
|
```shell
|
2024-07-03 20:11:25 +02:00
|
|
|
tailwindcss -i ./templates/assets/css/input.css -o ./assets/css/style.css --watch
|
2024-07-03 17:41:18 +02:00
|
|
|
```
|
2024-07-03 18:43:35 +02:00
|
|
|
|
2024-07-03 20:11:25 +02:00
|
|
|
#### Run the application - in Tauri
|
2024-07-03 18:43:35 +02:00
|
|
|
|
|
|
|
```shell
|
2024-07-03 20:11:25 +02:00
|
|
|
cargo tauri dev
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Run the application - in the browser
|
|
|
|
|
|
|
|
```shell
|
|
|
|
cargo watch -x run
|
2024-07-03 18:43:35 +02:00
|
|
|
```
|
|
|
|
|
2024-07-03 20:11:25 +02:00
|
|
|
|
2024-07-03 18:43:35 +02:00
|
|
|
## Production
|
|
|
|
|
2024-07-03 20:11:25 +02:00
|
|
|
### Build - in Tauri
|
|
|
|
|
|
|
|
- [] TODO : Fix the assets missing in the final build
|
|
|
|
|
|
|
|
```shell
|
|
|
|
tailwindcss -i ./templates/assets/css/input.css -o ./assets/css/style.css --minify
|
|
|
|
cargo tauri build
|
|
|
|
```
|
|
|
|
|
|
|
|
### Build - in the browser
|
2024-07-03 18:43:35 +02:00
|
|
|
|
|
|
|
```shell
|
|
|
|
tailwindcss -i ./templates/assets/css/input.css -o ./assets/css/style.css --minify
|
|
|
|
cargo build --release
|
|
|
|
```
|