- Run postgres via docker-compose:
docker compose up -d- Setup database with sqlx:
cargo install sqlx-cli
sqlx migrate run --database-url postgres://postgres:postgres@localhost:5432/postgres- Launch app with hot realod:
DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres dx serve --hotpatch --package web