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
|
|
|
|
```
|
|
|
|
|
|
|
|
### Run
|
|
|
|
|
2024-07-03 18:43:35 +02:00
|
|
|
#### Run the webserver
|
|
|
|
|
2024-07-03 17:41:18 +02:00
|
|
|
```shell
|
|
|
|
cargo watch -x run
|
|
|
|
```
|
2024-07-03 18:43:35 +02:00
|
|
|
|
|
|
|
#### Run the TailwindCSS watcher
|
|
|
|
|
|
|
|
```shell
|
|
|
|
tailwindcss -i ./templates/assets/css/input.css -o ./assets/css/style.css --watch
|
|
|
|
```
|
|
|
|
|
|
|
|
## Production
|
|
|
|
|
|
|
|
### Build
|
|
|
|
|
|
|
|
```shell
|
|
|
|
tailwindcss -i ./templates/assets/css/input.css -o ./assets/css/style.css --minify
|
|
|
|
cargo build --release
|
|
|
|
```
|