Skip to main content

System Requirements

  • Python: 3.11 or higher
  • Node.js: 20.x or higher
  • PostgreSQL: 14 or higher
  • Operating System: Linux, macOS, or Windows

Backend Installation

  1. Install uv package manager:
  1. Clone the repository:
  1. Sync dependencies:

Database Setup

  1. Create a PostgreSQL database:
Windows:
Linux/macOS:
Or using Docker:
  1. Copy .env.example to .env and configure database connection:
  1. Run migrations:
This will create all necessary tables (documents, workflows, policy_decisions, users, etc.) based on the migration files in alembic/versions/.

Frontend Installation

  1. Navigate to client directory:
  1. Install dependencies:

Environment Configuration

Copy .env.example to .env and configure your settings:
The .env.example file contains all available configuration options with documentation. Key variables include:
📖 Complete Configuration Guide: See Configuration Documentation for all available environment variables and detailed setup instructions.

Verification

  1. Start the backend:
  1. Start the frontend:
  1. Verify installation by accessing http://localhost:5173

Troubleshooting

Common Issues

Database Connection Error
  • Verify PostgreSQL is running
  • Check DATABASE_URL in .env file (copy from .env.example if needed)
  • Ensure database exists
  • Run migrations: uv run alembic upgrade head
LLM API Errors
  • Verify API keys are set correctly
  • Check network connectivity
  • Review rate limits
Frontend Build Errors
  • Clear node_modules and reinstall
  • Check Node.js version (20+)
  • Verify all dependencies are installed