Prerequisites
Before setting up ActumX, ensure you have the following tools installed:Bun
Required for running the API serverInstall Bun
pnpm
Required for the dashboard frontendInstall pnpm
Docker
Required for running PostgreSQLInstall Docker
Setup Steps
Start PostgreSQL Database
Create and start a PostgreSQL container using Docker:This creates a database named
x402 accessible at:Configure the API
Navigate to the API directory and set up environment variables:Your
api/.env file should contain:.env
Install Dependencies and Run Migrations
Install the API dependencies and set up the database schema:The
db:migrate command creates all necessary tables for agents, API keys, billing, and x402 transactions.Start the API Server
Launch the API in development mode:The API will be available at
http://localhost:3001.Configure the Dashboard
In a new terminal, navigate to the dashboard directory:Your
dashboard/.env.local file should contain:.env.local
Verify Installation
Once both servers are running, you should be able to:- Access the dashboard at
http://localhost:3000 - Create a new account
- Navigate through the dashboard UI
- Access API health check at
http://localhost:3001/health
Your ActumX development environment is now ready! Proceed to create your first agent.