Moonbase Documentation

Initial Setup

Install dependencies, run the API once, and store your keys safely.

Once the repo is cloned, you will see this structure:

install.bat
api.bat
app.bat
.env
index.js
.env
(front-end files)

1. Install dependencies

.\install.bat

This installs everything for both the API and the app.

2. First API run (get your keys)

.\api.bat

Save keys immediately

The Public API Key and Private API Key are printed once in the server console on first startup. Save them right away.

3. Add keys to app/.env

Open app/.env and add:

PUBLIC_API_KEY=your_public_key_here
PRIVATE_API_KEY=your_private_key_here

4. Configure the rest of the environment

Update any remaining .env values in api/.env and app/.env for your host, port, and payment provider settings.

On this page