2023-10-24 13:36:52 +00:00
|
|
|
# clubmanager
|
|
|
|
|
|
|
|
### Running
|
|
|
|
|
|
|
|
##### Run Database
|
|
|
|
```
|
|
|
|
docker-compose up
|
|
|
|
```
|
|
|
|
or
|
|
|
|
```
|
|
|
|
docker compose up
|
|
|
|
```
|
|
|
|
whichever works
|
|
|
|
|
2023-11-04 09:59:33 +00:00
|
|
|
##### Diesel Schema Setup
|
|
|
|
```
|
|
|
|
# install diesel cli
|
|
|
|
cargo install diesel_cli
|
|
|
|
|
|
|
|
# run migrations
|
|
|
|
diesel migration run
|
|
|
|
```
|
|
|
|
|
|
|
|
##### Build Styles
|
|
|
|
```
|
|
|
|
npx tailwindcss -i ./templates/styles/main.css -o ./dist/main.css --watch
|
|
|
|
```
|
|
|
|
|
2023-10-24 13:36:52 +00:00
|
|
|
##### Run Web Server
|
|
|
|
```
|
|
|
|
cargo run
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
##### Reset database
|
|
|
|
```
|
|
|
|
docker compose down
|
|
|
|
```
|
|
|
|
or
|
|
|
|
```
|
|
|
|
docker-compose down
|
|
|
|
```
|
|
|
|
whichever works, then restart the database as above
|