- Run:
docker compose up --build --detach
# Creates Docker containers and starts themcargo install cargo-watch
# Installs watcher for autobuildingcargo install sea-orm-cli
# Installs SeaORM CLI for migrationscargo install --path ./
sea-orm-cli migrate up
# Runs migrationscd api
& runcargo watch -x run
- Start server and watcher:
cargo watch -x run
- Generate entities from migration:
sea-orm-cli generate entity -o entity/src