# Using Chocolateychoco install python3# Or download from python.org# https://www.python.org/downloads/
Verify Python installation: python --version should show 3.8+
2
Node.js Installation
macOS
Linux
Windows
# Using Homebrewbrew install node# Or using Node Version Managercurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bashnvm install 18nvm use 18
# Using NodeSource repositorycurl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -sudo apt-get install -y nodejs# Or using NVMcurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bashnvm install 18nvm use 18
# Using Chocolateychoco install nodejs# Or download from nodejs.org# https://nodejs.org/
Verify Node.js installation: node --version should show 16.0+
3
Git Installation
macOS
Linux
Windows
# Git comes with Xcode Command Line Toolsxcode-select --install# Or using Homebrewbrew install git
sudo apt updatesudo apt install git
# Using Chocolateychoco install git# Or download from git-scm.com# https://git-scm.com/download/win
# Ubuntu/Debiancurl -fsSL https://get.docker.com -o get-docker.shsudo sh get-docker.sh# Add user to docker groupsudo usermod -aG docker $USER# Log out and back in for group change to take effect
# Install Python development dependenciespip install -r api/requirements.txtpip install -r api/requirements-dev.txt # if exists# Install Node.js development dependenciesnpm install# Install pre-commit hooks (if available)pre-commit install
3
Configure Development Settings
Create .env.development:
# Development environmentNODE_ENV=developmentLOG_LEVEL=DEBUGLOG_FILE_PATH=./api/logs/development.log# API ConfigurationPORT=8001SERVER_BASE_URL=http://localhost:8001# Your API keysGOOGLE_API_KEY=your_google_api_keyOPENAI_API_KEY=your_openai_api_key
4
Set Up Hot Reloading
For development with hot reloading:
# Terminal 1: Backend with auto-reloadpython -m api.main # Already includes reload in development# Terminal 2: Frontend with Turbopacknpm run dev # Uses Next.js Turbopack for fast refresh
# Check if python3 is availablepython3 --version# Create alias (add to ~/.bashrc or ~/.zshrc)alias python=python3# Or install Python properlysudo apt install python-is-python3 # Ubuntu/Debian
# Use Node Version Manager (recommended)curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bashnvm install 18nvm use 18# Or fix npm permissionssudo chown -R $(whoami) ~/.npm
Docker Issues
Problem: Cannot connect to Docker daemonSolutions:
# Start Docker servicesudo systemctl start docker# Add user to docker groupsudo usermod -aG docker $USER# Then log out and back in# Or run with sudo (not recommended for development)sudo docker-compose up
Port Conflicts
Problem: Port already in useSolutions:
# Find what's using the portlsof -i :3000 # or :8001# Kill the processkill -9 PID# Or use different ports in .envPORT=8002# Update frontend to use new backend port