35 - Development & Testing Guide
Overview
Running the Application
Development Mode
# Navigate to project directory
cd /path/to/openalgo
# Copy environment file (first time only)
cp .sample.env .env
# Generate secure keys
uv run python -c "import secrets; print(secrets.token_hex(32))"
# Copy output to APP_KEY and API_KEY_PEPPER in .env
# Run in development mode
uv run app.pyProduction Mode (Linux with Gunicorn)
Docker Mode
Frontend Development (React)
Setup
Development Server
Build for Production
Testing Architecture
Unit Testing (Vitest)
Running Tests
Test File Structure
Example Test
E2E Testing (Playwright)
Running E2E Tests
E2E Test Structure
Example E2E Test
Accessibility Testing (axe-core)
Running A11y Tests
A11y Test Libraries
Library
Purpose
Example A11y Test
Playwright A11y Test
Linting & Formatting (Biome)
Running Biome
Biome Configuration
Biome vs ESLint/Prettier
Feature
Biome
ESLint + Prettier
Backend Testing (Python)
Running Backend Tests
Test Structure
CI/CD Pipeline Example
Command Reference
Backend Commands
Command
Description
Frontend Commands
Command
Description
Key Files Reference
File
Purpose
Last updated