Skip to main content

Installation

Get ChemAudit running on your system using Docker (recommended) or manual installation for development.

Prerequisites

Before installing ChemAudit, ensure you have the following requirements:

RequirementMinimum VersionRecommended
Docker Engine24.0+Latest
Docker Compose2.20+Latest
RAM4 GB8 GB+
Disk Space20 GB50 GB+
CPU Cores24+

For manual installation (development only):

RequirementVersion
Python3.11+
Node.js18+
PostgreSQL16+
Redis7+

The fastest way to get started is with Docker Compose:

# Clone the repository
git clone https://github.com/Kohulan/ChemAudit.git
cd chemaudit

# Create environment file with required secrets
cp .env.example .env
# Edit .env to set POSTGRES_PASSWORD, SECRET_KEY,
# API_KEY_ADMIN_SECRET, CSRF_SECRET_KEY, GRAFANA_PASSWORD

# Start all services in development mode
docker-compose up -d

# Wait for services to be ready (watch logs)
docker-compose logs -f
Success

When you see "Application startup complete" in the logs, ChemAudit is ready to use.

Access Points

After successful startup, ChemAudit will be available at:

ServiceURL
Web Interfacehttp://localhost:3002
API Documentationhttp://localhost:8001/api/v1/docs
API ReDochttp://localhost:8001/api/v1/redoc

Production Deployment

For production use with configurable batch limits:

# Interactive deployment - select a profile
./deploy.sh

# Or specify profile directly
./deploy.sh medium # 10K molecules, 4 workers
./deploy.sh large # 50K molecules, 8 workers
./deploy.sh coconut # 1M molecules, 16 workers

Access the production deployment at http://localhost (all services behind Nginx).

info

See the Deployment Guide for full production setup including SSL, monitoring, and scaling.

Manual Installation (Development)

For development work on the backend or frontend, you can install components manually.

Backend Setup

Requirements: Python 3.11+, PostgreSQL, Redis

cd backend

# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate

# Install dependencies
pip install -e .

# Install dev dependencies (optional, for testing and linting)
pip install -e ".[dev]"

# Start development server
uvicorn app.main:app --reload --port 8000

The backend API will be available at http://localhost:8000.

Frontend Setup

Requirements: Node.js 18+, npm

cd frontend

# Install dependencies
npm install

# Start development server
npm run dev

The frontend will run on port 3002 by default.

Database Required

The backend requires PostgreSQL and Redis to be running. Use Docker for these services or install them locally.

Verifying Installation

Test your installation with these verification steps:

1. Check Service Health

# Docker installation
docker-compose ps

# All services should show "Up" status

2. Test API Endpoint

curl http://localhost:8001/api/v1/health

Expected response:

{
"status": "healthy",
"app_name": "ChemAudit",
"app_version": "1.0.0",
"rdkit_version": "2025.09.3"
}

3. Test Web Interface

Open http://localhost:3002 in your browser. You should see the ChemAudit interface.

Next Steps

Now that ChemAudit is installed:

  1. Configure your deployment - Set up environment variables and deployment profiles
  2. Run your first validation - Learn the basics by validating a molecule
  3. Explore the User Guide - Discover all features

Troubleshooting

Having installation issues? Check the Troubleshooting Guide for common solutions.