1 unstable release
0.0.1 | Jan 31, 2023 |
---|
#31 in #docker-compose
7KB
README
Development
Setup database:
docker-compose -f docker-compose.yml up -d
Run migrations:
sqlx migrate run
And then run the server:
cargo run
Or run it with docker:
# Setup services with multiple compose files, see:
#
# https://docs.docker.com/compose/extends/
#
docker-compose -f docker-compose.yml -f docker-compose.override.yml up --build
# Or just the following:
docker-compose up --build
SQLx migration
Add new migration:
sqlx migrate add <name>
Generate sqlx-data.json
:
cargo sqlx prepare -- --lib