Skip to main content

Prerequisites

Quick Setup

1

Clone the repository

2

Install dependencies

3

Set up environment variables

Copy example files:
Edit the .env files with your values:
  • HELIUS_API_KEY - Get from Helius
  • ANCHOR_WALLET - Path to your Solana keypair
4

Start infrastructure

This starts PostgreSQL, Redis, and other required services.
5

Run development servers

API Server:
Frontend:
Anchor Program:

Project Structure

packages
docker-compose.yml
package.json
docs

Development Workflow

  1. Start infrastructure: docker compose up -d
  2. Run API in watch mode: cd packages/api && bun run dev
  3. Run frontend in watch mode: cd packages/frontend && bun run dev
  4. Build Anchor program: cd packages/anchor && anchor build

Access Services

Testing

Run all tests:
Test individual packages:

Troubleshooting

If Docker services fail to start:
  1. Check Docker is running: docker ps
  2. Check ports are available (3000, 3001, 5432, 6379)
  3. Restart Docker: docker compose down && docker compose up -d
If Anchor build fails:
  1. Ensure Solana CLI is installed: solana --version
  2. Set Solana config: solana config set --url devnet
  3. Check Anchor version: anchor --version (should be 0.32.1+)
If API can’t connect to services:
  1. Verify Docker services are running: docker compose ps
  2. Check environment variables are set correctly
  3. Verify Helius API key is valid

Next Steps

Contributing Guide

Learn how to contribute to the project.

Contributing Overview

Full contributing documentation.