Skip to main content

Prerequisites

Install the required tools for backend development:

Node.js 18+

For wrangler CLI - nodejs.org

Quick Start

1

Clone Repository

Clone the SuperBox backend repository:
2

Create Virtual Environment

Create and activate a Python virtual environment:Windows (PowerShell):
macOS/Linux:
3

Install Python CLI

Install SuperBox CLI with dependencies:
Optional (dev tools):
4

Configure Environment

Create .env file in your working directory:
Never commit .env to version control. Keep credentials secure.
5

Run Go Server

Navigate to server directory and run:From src/superbox/server:
Or build and run:
Server will be available at:

Using the CLI

After setup, verify CLI works:
Initialize a project:
Authenticate (if needed):

Troubleshooting

Ensure .env exists in your working directory with required Cloudflare R2, Firebase, Scanner, and Payment credentials.
Verify CLOUDFLARE_R2_ACCESS_KEY_ID and CLOUDFLARE_R2_SECRET_ACCESS_KEY are R2 API token credentials (not Cloudflare global API key). Check that the bucket name matches CLOUDFLARE_R2_BUCKET_NAME.
Install sonar-scanner CLI and set SONAR_TOKEN and SONAR_ORGANIZATION in .env.
Install these tools (ggshield, bandit) if running security scans via superbox push.

Next Steps

CLI Commands

Learn all CLI commands

API Reference

Explore HTTP API endpoints

Architecture

Understand system design

Deployment

Deploy to production
For complete setup instructions, visit https://superbox.1mindlabs.org/docs