To start the development server run:
bun run devOpen http://localhost:3000/ with your browser to see the result.
This project uses Bun's built-in test runner to execute real integration tests (no mocks) against a Postgres database.
- Start a local Postgres for tests (example via Docker):
docker run --rm \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=carts_test \
-p 54329:5432 \
-d postgres:16- Run tests with the provided env file:
bun test --env-file=.env.testThe test runner will:
- Ensure the required enums and
cartstable exist - Truncate data between tests for isolation
- Exercise HTTP routes via
app.handle(new Request(...))