Skip to main content

Development

Set up your local development environment and learn how to test AxonFlow.

Development Guides

GuideDescription
Local DevelopmentSet up AxonFlow locally with Docker Compose
Testing OverviewTesting strategies and best practices
Load TestingPerformance and load testing methodology
Performance TestingBenchmark and optimize your deployment

Quick Start

Prerequisites

  • Docker and Docker Compose
  • Go 1.21+ (for building from source)
  • Node.js 18+ (for frontend development)

Local Setup

# Clone the repository
git clone https://github.com/getaxonflow/axonflow.git
cd axonflow

# Start all services
docker compose up -d

# Verify services are healthy
docker compose ps

Service Endpoints

ServiceURLDescription
Agenthttp://localhost:8080Policy enforcement
Orchestratorhttp://localhost:8081Multi-agent planning
Prometheushttp://localhost:9090Metrics
Grafanahttp://localhost:3000Dashboards

Testing

Unit Tests

# Run all tests
go test ./platform/...

# Run with coverage
go test ./platform/... -cover

# Run specific package
go test ./platform/agent/...

Integration Tests

# Start test environment
docker compose -f docker-compose.test.yml up -d

# Run integration tests
go test ./platform/... -tags=integration

Project Structure

axonflow/
├── platform/
│ ├── agent/ # Policy enforcement agent
│ ├── orchestrator/ # Multi-agent planning
│ ├── connectors/ # MCP connectors
│ └── shared/ # Shared libraries
├── docs/ # Documentation
├── deploy/ # Deployment configs
└── docker-compose.yml # Local development

Next Steps