Local Setup
This guide will help you install and run Maxun on your local system.
Prerequisites
| Software | Download Link |
|---|---|
| Node.js (18 or above) | Download Node.js |
| PostgreSQL | Download PostgreSQL |
| MinIO | Download MinIO |
Installation Steps
- Clone the repository
git clone https://github.com/getmaxun/maxun
- Create a
.envfile in the project root folder (maxun in this case) - Copy the content from the example env file to your
.env - Ensure you have the prerequisites installed on your system.
- Install dependencies
# change directory to the project root
cd maxun
# install dependencies
npm install
# change directory to maxun-core to install dependencies
cd maxun-core
npm install
# get back to the root directory
cd ..
-
Browser Setup - Choose one of the following options:
Option A: Use the Browser Docker Service (Recommended)
If you want to use the browser Docker service, configure these environment variables in your
.envfile:BROWSER_WS_PORT: WebSocket port for browser connections (default: 3001)BROWSER_HEALTH_PORT: Health check port for the browser service (default: 3002)BROWSER_WS_HOST: Browser service host (set tolocalhostfor local setup)
Then run the browser service using Docker:
docker-compose up -d browserOption B: Install Chromium Locally
If you prefer not to use the browser Docker service, install Chromium:
npx playwright install --with-deps chromium -
Run the command below in the root directory of the project
# start frontend and backend together
npm run start
You can access the frontend at PUBLIC_URL (eg: http://localhost:5173/) and backend at BACKEND_URL (eg: http://localhost:8080/)
To set the PUBLIC_URL & BACKEND_URL environment variables, refer Environment Variables section.