Prerequisites
Before installing the UIP - Urban Intelligence Platform, ensure your system meets these requirements.
π» System Requirementsβ
Minimum Requirementsβ
- CPU: 4 cores (2.0 GHz+)
- RAM: 8 GB
- Storage: 20 GB free space
- OS: Windows 10/11, macOS 11+, Ubuntu 20.04+
Recommended Requirementsβ
- CPU: 8 cores (3.0 GHz+)
- RAM: 16 GB
- Storage: 50 GB SSD
- OS: Ubuntu 22.04 LTS or latest macOS
- Network: 100 Mbps+ internet connection
Production Requirementsβ
- CPU: 16+ cores
- RAM: 32 GB+
- Storage: 500 GB SSD (or distributed storage)
- Network: 1 Gbps+ dedicated connection
- GPU (Optional): NVIDIA GPU with CUDA 11.7+ for YOLOX acceleration
- Recommended: NVIDIA Tesla T4, V100, or A100
- VRAM: 8GB+ for real-time processing
- Driver: NVIDIA Driver 515+
Cloud Deployment Requirementsβ
AWSβ
- Compute: EC2 c6i.4xlarge or better
- GPU: EC2 g4dn.xlarge (with T4 GPU)
- Storage: EBS gp3 (500 GB)
- Database: RDS PostgreSQL, DocumentDB (MongoDB-compatible), ElastiCache (Redis)
- Network: VPC with NAT Gateway
Azureβ
- Compute: Standard_D8s_v5 or better
- GPU: Standard_NC6s_v3 (with V100 GPU)
- Storage: Premium SSD (500 GB)
- Database: Azure Database for PostgreSQL, Cosmos DB, Azure Cache for Redis
- Network: Virtual Network with Application Gateway
Google Cloudβ
- Compute: n2-standard-8 or better
- GPU: n1-standard-4 with 1x T4 GPU
- Storage: Persistent SSD (500 GB)
- Database: Cloud SQL for PostgreSQL, Firestore, Memorystore for Redis
- Network: VPC with Cloud Load Balancing
π³ Docker & Docker Composeβ
Option 1: Docker Desktop (Recommended for Windows/macOS)β
Windows:
- Download Docker Desktop for Windows
- Run installer
- Enable WSL 2 backend (recommended)
- Restart system
macOS:
- Download Docker Desktop for Mac
- Run installer
- Drag Docker.app to Applications
- Start Docker Desktop
Verify Installation:
docker --version
# Docker version 24.0.0 or higher
docker-compose --version
# Docker Compose version 2.20.0 or higher
Option 2: Docker Engine (Linux)β
Ubuntu/Debian:
# Update packages
sudo apt-get update
# Install prerequisites
sudo apt-get install -y \
ca-certificates \
curl \
gnupg \
lsb-release
# Add Docker GPG key
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \
sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
# Add Docker repository
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] \
https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# Install Docker Engine
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
# Start Docker
sudo systemctl start docker
sudo systemctl enable docker
# Add user to docker group (no sudo needed)
sudo usermod -aG docker $USER
newgrp docker
Verify:
docker --version
docker compose version
π Python (for Local Development)β
Python 3.9+β
Windows:
- Download Python 3.9+
- Run installer
- β Check "Add Python to PATH"
- Click "Install Now"
macOS:
# Using Homebrew
brew install python@3.9
# Verify
python3 --version
Ubuntu/Debian:
sudo apt-get update
sudo apt-get install -y python3.9 python3.9-venv python3-pip
# Verify
python3.9 --version
pip & venvβ
# Install pip (if not included)
python3 -m ensurepip --upgrade
# Verify
pip3 --version
# Create virtual environment
python3 -m venv venv
# Activate
# Windows:
venv\Scripts\activate
# macOS/Linux:
source venv/bin/activate
π¦ Node.js (for Frontend Development)β
Node.js 18+β
All Platforms: Download from nodejs.org (LTS version recommended)
Using nvm (Recommended):
macOS/Linux:
# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Install Node.js 18
nvm install 18
nvm use 18
# Verify
node --version # v18.x.x
npm --version # 9.x.x
Windows: Use nvm-windows
npm & Yarnβ
# npm is included with Node.js
# Install Yarn (optional)
npm install -g yarn
# Verify
yarn --version
ποΈ Database Tools (Optional)β
Neo4j Browserβ
Included in Docker setup, access at http://localhost:7474
MongoDB Compassβ
Download from mongodb.com/try/download/compass
DBeaver (Universal Database Tool)β
Download from dbeaver.io
π οΈ Development Tools (Optional but Recommended)β
Gitβ
Windows: git-scm.com
macOS: brew install git
Linux: sudo apt-get install git
VS Codeβ
Download from code.visualstudio.com
Recommended Extensions:
- Python (ms-python.python)
- Docker (ms-azuretools.vscode-docker)
- ESLint (dbaeumer.vscode-eslint)
- Prettier (esbenp.prettier-vscode)
- GitLens (eamodio.gitlens)
Postman (API Testing)β
Download from postman.com
Insomnia (Alternative to Postman)β
Download from insomnia.rest
π Verification Checklistβ
Run these commands to verify all prerequisites:
# Docker
docker --version
docker compose version
# Python
python3 --version
pip3 --version
# Node.js
node --version
npm --version
# Git
git --version
# Check Docker is running
docker ps
# Check available disk space (should be 20GB+)
df -h # macOS/Linux
# Windows: check in File Explorer
Expected Output:
Docker version 24.0.0+
Docker Compose version 2.20.0+
Python 3.9.0+
pip 23.0.0+
Node.js v18.0.0+
npm 9.0.0+
git 2.40.0+
β οΈ Common Issuesβ
Docker Not Startingβ
Windows:
- Ensure Hyper-V or WSL 2 is enabled
- Check BIOS virtualization settings
macOS:
- Allow Docker in Security & Privacy settings
- Ensure sufficient disk space
Linux:
- Check Docker service:
sudo systemctl status docker - Check user permissions:
groupsshould includedocker
Port Conflictsβ
If ports are already in use:
# Check what's using port 8001
# Windows:
netstat -ano | findstr :8001
# macOS/Linux:
lsof -i :8001
# Kill process
# Windows:
taskkill /PID <PID> /F
# macOS/Linux:
kill -9 <PID>
Python Package Installation Failsβ
# Upgrade pip
pip install --upgrade pip
# Use virtual environment (recommended)
python3 -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -e .
π Next Stepsβ
β All prerequisites installed? Continue to:
- Docker Setup - Deploy with Docker Compose
- Local Setup - Development environment
Need help? Check the Troubleshooting Guide.