Skip to content

Getting Started

This guide will help you set up Mako on your local machine for development.

  • Node.js (v20+)
  • pnpm (v8+)
  • Docker & Docker Compose (for MongoDB)
  1. Clone the repository:

    Terminal window
    git clone https://github.com/your-org/mako.git
    cd mako
  2. Install dependencies:

    Mako is a monorepo managed by pnpm.

    Terminal window
    pnpm install
  3. Environment Setup:

    Copy the example environment file to .env:

    Terminal window
    cp .env.example .env

    Update the .env file with your configuration. At a minimum, you’ll need:

    • DATABASE_URL: Your MongoDB connection string (default: mongodb://localhost:27017/mako)
    • WEB_API_PORT: Port for the API (default: 8080)
    • CLIENT_URL: URL for the frontend (default: http://localhost:5173)
  4. Start Infrastructure:

    Start MongoDB using Docker:

    Terminal window
    pnpm run docker:up

Start the development server. This will launch the API, the React App, and the Inngest dev server concurrently.

Terminal window
pnpm run dev

Mako includes a CLI for running data sync jobs manually.

Terminal window
# Interactive mode
pnpm run sync
# Command line mode
pnpm run sync -s <source_id> -d <dest_id>