Local Development

Prerequisites

  • Bun
  • PostgreSQL (or a Postgres connection string)
  • Redis

Setup

  1. Clone the repo and copy the env template:
cp packages/api/.env.template packages/api/.env
  1. Update the .env file:
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
  1. Install dependencies and start:
bun install
bun dev
  1. Open the services:
ServiceURL
Medusa backendhttp://localhost:9000
Admin dashboardhttp://localhost:7000
Vendor portalhttp://localhost:7001

Follow the on-screen instructions to log in and create your first admin user.

Build

bun run build