Complete installation instructions for the Quantis platform across different environments and operating systems.
- Prerequisites
- System Requirements
- Installation Options
- Method 1: Automated Setup (Recommended)
- Method 2: Manual Local Setup
- Method 3: Docker Compose
- Method 4: Kubernetes Production Deployment
- Verification
- Troubleshooting
Ensure the following software is installed before proceeding:
| Software | Minimum Version | Recommended | Purpose |
|---|---|---|---|
| Python | 3.9 | 3.11+ | Backend API and ML models |
| Node.js | 14.x | 16.x+ | Frontend web application |
| npm | 6.x | 8.x+ | Frontend package management |
| Docker | 20.10 | Latest | Containerized deployment |
| Docker Compose | 2.0 | Latest | Multi-container orchestration |
| Git | 2.x | Latest | Version control |
| Kubernetes | 1.20+ | 1.25+ | Production deployment (optional) |
| Component | Minimum | Recommended |
|---|---|---|
| CPU | 2 cores | 4+ cores |
| RAM | 8 GB | 16 GB |
| Storage | 10 GB free | 20 GB+ free |
| OS | Ubuntu 20.04+ / macOS 10.15+ / Windows 10/11 with WSL2 | Ubuntu 22.04 LTS |
| Component | Minimum | Recommended |
|---|---|---|
| CPU | 4 cores | 8+ cores |
| RAM | 16 GB | 32 GB+ |
| Storage | 50 GB SSD | 100 GB+ NVMe SSD |
| Network | 100 Mbps | 1 Gbps+ |
Choose the installation method that best fits your use case:
| Method | Use Case | Complexity | Setup Time |
|---|---|---|---|
| Automated Setup | Quick development start | Low | 5-10 min |
| Manual Local | Custom development setup | Medium | 15-20 min |
| Docker Compose | Containerized development | Low | 10-15 min |
| Kubernetes | Production deployment | High | 30-60 min |
The fastest way to get started with Quantis for development.
git clone https://github.com/quantsingularity/Quantis.git
cd Quantischmod +x scripts/setup_quantis_env.sh
./scripts/setup_quantis_env.shThe script automatically:
- Creates Python virtual environments
- Installs all Python dependencies
- Installs Node.js dependencies
- Sets up configuration files
chmod +x scripts/run_quantis.sh
./scripts/run_quantis.sh devAccess Points:
- API: http://localhost:8000
- API Docs: http://localhost:8000/docs
- Frontend: http://localhost:3000
For developers who want fine-grained control over the installation.
git clone https://github.com/quantsingularity/Quantis.git
cd Quantis# Navigate to API directory
cd code/api
# Create virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install --upgrade pip
pip install -r requirements.txt
# Return to project root
cd ../..# Navigate to frontend directory
cd web-frontend
# Install dependencies
npm install
# Return to project root
cd ..Create .env file in code/api/ directory:
# Security
SECRET_KEY=your-secret-key-change-in-production
JWT_SECRET=your-jwt-secret-change-in-production
# Database
DATABASE_URL=sqlite:///./quantis.db
# Redis (optional)
REDIS_URL=redis://localhost:6379/0
# Email (optional)
SMTP_SERVER=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your-email@example.com
SMTP_PASSWORD=your-password
# API Configuration
DEBUG=True
HOST=0.0.0.0
PORT=8000cd code
PYTHONPATH=/path/to/Quantis/code:$PYTHONPATH python -m api.database
cd ..Terminal 1 - Backend:
cd code
source api/venv/bin/activate
uvicorn api.app:app --host 0.0.0.0 --port 8000 --reloadTerminal 2 - Frontend:
cd web-frontend
npm startFor containerized development with minimal host dependencies.
Ensure Docker and Docker Compose are installed:
docker --version
docker-compose --versiongit clone https://github.com/quantsingularity/Quantis.git
cd QuantisEdit infrastructure/docker-compose.yml if needed. Default configuration includes:
- API service (port 8000)
- Frontend service (port 80)
- MLflow (port 5000)
- Prometheus (port 9090)
- Grafana (port 3000)
cd infrastructure
docker-compose up -d --builddocker-compose ps
docker-compose logs -f apiAccess Points:
- Frontend: http://localhost:80
- API: http://localhost:8000
- MLflow: http://localhost:5000
- Prometheus: http://localhost:9090
- Grafana: http://localhost:3000
docker-compose down
# With volume cleanup:
docker-compose down -vFor scalable production deployments using Kubernetes.
# Verify Kubernetes cluster access
kubectl cluster-info
kubectl get nodes
# Verify Helm (if using)
helm versiongit clone https://github.com/quantsingularity/Quantis.git
cd Quantis/infrastructure/kubernetesEdit configuration for your environment:
# Development
cd environments/dev
vim config.yaml
# Production
cd environments/prod
vim config.yaml# Deploy development environment
kubectl apply -k infrastructure/kubernetes/
# Or use specific environment
kubectl apply -k infrastructure/kubernetes/environments/dev
# For production
kubectl apply -k infrastructure/kubernetes/environments/prod# Check pods
kubectl get pods -n quantis
# Check services
kubectl get services -n quantis
# Check ingress
kubectl get ingress -n quantis# Port forward for testing
kubectl port-forward -n quantis svc/api-service 8000:8000
kubectl port-forward -n quantis svc/frontend-service 3000:80After installation, verify the setup:
curl http://localhost:8000/health
# Expected: {"status": "healthy", "timestamp": "..."}Navigate to: http://localhost:8000/docs
Navigate to: http://localhost:3000
cd Quantis
PYTHONPATH=/path/to/Quantis/code:$PYTHONPATH pytest tests/Issue: ModuleNotFoundError or dependency conflicts
Solution:
# Upgrade pip
pip install --upgrade pip
# Clear cache
pip cache purge
# Reinstall requirements
pip install --no-cache-dir -r requirements.txtIssue: npm install fails or version conflicts
Solution:
# Clear npm cache
npm cache clean --force
# Delete node_modules
rm -rf node_modules package-lock.json
# Reinstall
npm installIssue: Address already in use error
Solution:
# Find process using port 8000
lsof -i :8000
# Or on Windows: netstat -ano | findstr :8000
# Kill the process
kill -9 <PID>Issue: Permission errors when running Docker commands
Solution:
# Add user to docker group
sudo usermod -aG docker $USER
# Log out and log back in, or run:
newgrp dockerIssue: Cannot connect to database
Solution:
-
Verify DATABASE_URL in
.envfile -
Check database service is running:
# For SQLite (default) ls -la code/api/quantis.db # For PostgreSQL pg_isready -h localhost -p 5432
Issue: Installation crashes due to insufficient memory
Solution:
# Increase Node.js memory limit
export NODE_OPTIONS="--max-old-space-size=4096"
# Install with limited concurrency
npm install --maxsockets 1| OS / Platform | Recommended Install Command | Notes |
|---|---|---|
| Ubuntu 20.04+ | ./scripts/setup_quantis_env.sh |
Fully supported, recommended for production |
| Ubuntu 22.04 LTS | ./scripts/setup_quantis_env.sh |
Best tested, primary dev platform |
| macOS 11+ | ./scripts/setup_quantis_env.sh |
Install Xcode Command Line Tools first |
| macOS M1/M2 | Manual setup recommended | Some dependencies may need arch -x86_64 prefix |
| Windows 10/11 | Use WSL2 + Ubuntu | Install WSL2, then follow Ubuntu instructions |
| Docker (Any OS) | docker-compose up -d |
Isolated environment, no host dependencies |
| Kubernetes | kubectl apply -k infrastructure/kubernetes/ |
Requires cluster access and configuration |
After successful installation:
- Configure environment variables - See Configuration Guide
- Read usage documentation - See Usage Guide
- Explore examples - See Examples
- Set up monitoring - Configure Prometheus and Grafana dashboards
- Configuration Guide - Configure Quantis for your environment
- Usage Guide - Learn common workflows
- API Reference - Explore the REST API
- Troubleshooting - Get help with common issues