Skip to main content

Development Setup

Prerequisites

macOS

Ubuntu / Debian

Clone and build

The workspace contains four crates: memorose-common, memorose-core, memorose-server, and memorose-gateway. For the dashboard frontend:

Configuration

Copy the example environment file:
At minimum, set one provider key and model names:
If you want to force the provider via env, prefer:
Or:
Create config.toml manually using the current schema in crates/memorose-common/src/config.rs. Do not rely on config.example.toml as a fully current template.

Running locally

Standalone mode

The fastest way to get one local node running:
This starts one API node on port 3000 and the dashboard on 3100.

Local cluster mode

To simulate a 3-node local Raft cluster:

Other helper commands

Dashboard dev server

For frontend development with hot reload:

Ports

Docker

A docker-compose.yml is provided:
This starts the gateway, two server nodes, and the dashboard.
When running the dashboard in Docker, set DASHBOARD_API_ORIGIN to the backend container URL, for example http://memorose-node-0:3000. Otherwise the dashboard will try to call 127.0.0.1:3000 inside its own container and fail.