Configuration
HonoCommerce is configured via environment variables.
Environment Variables
Section titled “Environment Variables”| Variable | Description | Default |
|---|---|---|
DATABASE_URL | PostgreSQL connection string | postgresql://localhost:5432/honocommerce |
REDIS_URL | Redis connection string | redis://localhost:6379 |
PORT | Server port | 3000 |
NODE_ENV | Environment | development |
Database
Section titled “Database”HonoCommerce uses PostgreSQL with Drizzle ORM. Run migrations with:
bun run db:pushTo explore the database visually:
bun run db:studioDocker
Section titled “Docker”The included docker-compose.yml sets up PostgreSQL and Redis:
bun run docker:up # startbun run docker:down # stopbun run docker:logs # view logs