Local Development
Prerequisites
- Bun
- PostgreSQL (or a Postgres connection string)
- Redis
Setup
- Clone the repo and copy the env template:
cp packages/api/.env.template packages/api/.env
- Update the
.envfile:
DATABASE_URL=postgres://user:password@localhost:5432/mercur
REDIS_URL=redis://localhost:6379
JWT_SECRET=your-super-secret-jwt-key
COOKIE_SECRET=your-super-secret-cookie-key
- Install dependencies and start:
bun install
bun dev
- Open the services:
| Service | URL |
|---|---|
| Medusa backend | http://localhost:9000 |
| Admin dashboard | http://localhost:7000 |
| Vendor portal | http://localhost:7001 |
Follow the on-screen instructions to log in and create your first admin user.
Build
bun run build