- 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
- Get into
app/
directory (IMPORTANT!):
cd app/
- Compile tailwind:
npx @tailwindcss/cli -i ./input.css -o ./assets/tailwind.css
- Launch app with hot realod:
DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres dx serve