Setup database:
shell
docker-compose -f docker-compose.yml up -d
Run migrations:
shell
sqlx migrate run
And then run the server:
shell
cargo run
Or run it with docker:
```shell
#
# docker-compose -f docker-compose.yml -f docker-compose.override.yml up --build
docker-compose up --build ```
Add new migration:
shell
sqlx migrate add <name>
Generate sqlx-data.json
:
cargo sqlx prepare -- --lib