Prerequisites
- Node.js LTS v22+ and pnpm for the frontend
- Python 3.11+ and uv for the backend and workflows
- Docker and Docker Compose for services
- Git for version control
Repository Structure
Development Environment Setup
1. Clone the Repository
2. Start Core Services
Start the Temporal server (required for workflow orchestration):For PostgreSQL, you can either install it locally or use a Docker container for development.
Frontend Development
The OneRun web application is built with Next.js, React, and TypeScript.Setup
Configuration
Create environment file:.env.local with the following configuration:
BETTER_AUTH_SECRET: Must be at least 32 characters long for securityBETTER_AUTH_URL: The auth endpoint URL for your Next.js appBETTER_AUTH_TRUSTED_ORIGINS: Comma-separated list of allowed originsBETTER_AUTH_JWT_*: JWT configuration for token handlingBETTER_AUTH_DISABLE_SIGNUP: Set totrueto disable new user registration
Development Server
http://localhost:5173 with hot reload enabled.
Key Technologies
- Next.js - React framework with built-in routing and server-side rendering
- React 18 - UI framework with hooks and context
- TypeScript - Type safety and better developer experience
- Tailwind CSS - Utility-first styling
- shadcn/ui - UI component library built on Radix UI
- Better Auth - Authentication and session management
- React Query - Data fetching and caching
- Biome - Fast linting and formatting tool
Development Commands
Project Structure
Backend Development
The OneRun API is built with Python, FastAPI, and SQLAlchemy.Setup
Configuration
Create environment file:.env with the following configuration:
HOST/PORT: Server binding configurationDATABASE_URL: PostgreSQL connection stringAUTH_API_KEY: API authentication secret (must be 32+ characters)AUTH_JWKS_URL: JWT key endpoint from Next.js appTEMPORAL_ADDRESS: Temporal server connectionANTHROPIC_API_KEY: AI model API key
Development Server
http://localhost:3001.
Key Technologies
- FastAPI - Modern Python web framework with automatic OpenAPI docs
- SQLAlchemy - ORM for database operations and migrations
- Pydantic - Data validation and serialization
- Better-Auth - Authentication integration
- Temporal - Workflow orchestration client
- Uvicorn - ASGI server for development and production
Development Commands
Project Structure
Next Steps
After setting up both frontend and backend:- Run both services - Start the Next.js frontend and FastAPI backend simultaneously
- Set up your first project - Follow the Quick Start Guide to create a project and agent
- Explore the codebase - Review the Architecture to understand system design
- Create a worker - See Worker Examples to implement your AI agent
Make sure both PostgreSQL and Temporal services are running before starting the frontend and backend applications.