A comprehensive Docker-based PostgreSQL test database for testing HyperAudit.
# Install dependencies and start everything
cd test && bun install
cd ..
just dev:setupThis will:
- Start PostgreSQL in Docker
- Setup timescaledb
- Seed with realistic data
See just help for all available commands.
just db:up- Start PostgreSQLjust db:down- Stop PostgreSQLjust db:clean- Remove all datajust db:shell- Open psql
just dev:setup- Full setupjust dev:fresh- Complete resetjust dev:refresh- Remigrate + reseed
just test:connection- Test connection
- Edit
test/sql/schema.sql - Run
just db:migrate
- Edit
test/src/seed.ts - Run
just dev:refresh
export DATABASE_URL="postgres://user:pass@host:port/db"
just test:connection