Prerequisites
Tools and accounts you need before starting
Prerequisites
Before setting up SynapseAI, ensure you have the following tools installed and accounts configured.
Required Tools
1. Docker & Docker Compose
Docker is required to run Redis and MCP servers.
Installation:
macOS:
# Install Docker Desktop
brew install --cask dockerLinux:
# Install Docker Engine
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# Install Docker Compose
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-composeVerify:
docker --version
docker-compose --version2. Python 3.11+
Required for the backend.
Installation:
macOS:
brew install python@3.11Linux (Ubuntu/Debian):
sudo apt update
sudo apt install python3.11 python3.11-venv python3-pipVerify:
python3 --version # Should be 3.11 or higher3. Node.js 20.x+
Required for the frontend.
Installation:
macOS:
brew install node@20Linux:
# Using NodeSource
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejsUsing nvm (Recommended):
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
nvm install 20
nvm use 20Verify:
node --version # Should be v20.x
npm --version4. pnpm
Package manager for the frontend.
Installation:
npm install -g pnpmVerify:
pnpm --version5. uv (Optional but Recommended)
Fast Python package manager.
Installation:
curl -LsSf https://astral.sh/uv/install.sh | shVerify:
uv --versionRequired API Keys & Accounts
1. LLM Provider (Choose One)
You need at least one LLM provider API key:
OpenAI (Recommended for production):
- Sign up: platform.openai.com
- Create API key
- Models: GPT-4, GPT-3.5-turbo
Cerebras (Recommended for development):
- Sign up: cloud.cerebras.ai
- Fast inference, cost-effective
- Models: Llama 3.3 70B
Groq (Alternative):
- Sign up: groq.com
- Very fast inference
- Free tier available
Together AI (Alternative):
- Sign up: together.ai
- Multiple open-source models
2. Commercetools
E-commerce platform for product catalog and orders.
Setup:
- Sign up: commercetools.com
- Create a project
- Get API credentials:
- Project Key
- Client ID
- Client Secret
- API URL
- Auth URL
- Set scopes:
manage_products,manage_orders,manage_customers
3. Voucherify
Promotion and loyalty platform.
Setup:
- Sign up: voucherify.io
- Create an application
- Get credentials:
- Application ID
- Application Token
- Note the API URL
4. AWS Account (For Deployment Only)
Required only if deploying to production.
Setup:
- Create AWS account: aws.amazon.com
- Set up IAM user with appropriate permissions
- Configure AWS CLI:
aws configureDevelopment Tools (Recommended)
IDE/Editor
VS Code (Recommended):
# macOS
brew install --cask visual-studio-code
# Extensions
code --install-extension ms-python.python
code --install-extension dbaeumer.vscode-eslint
code --install-extension esbenp.prettier-vscodePyCharm (Alternative):
- Professional or Community edition
- Python and Docker plugins
Database Client
Redis CLI:
# macOS
brew install redis
# Linux
sudo apt install redis-toolsRedisInsight (GUI):
# macOS
brew install --cask redisinsightAPI Testing
httpie or curl:
# macOS
brew install httpie
# Test
http GET http://localhost:8001/healthPostman (Alternative):
- Download from postman.com
Environment Configuration
Create environment files for storing credentials:
Backend .env
cd backend
cp env.example .env
# Edit .env with your API keysFrontend .env
cd frontend
cp .env.example .env
# Edit .env with your configurationVerify Setup
Run this checklist to ensure everything is ready:
# Check Docker
docker --version && docker-compose --version
# Check Python
python3 --version
# Check Node.js and pnpm
node --version && pnpm --version
# Check uv (optional)
uv --version
# Test Docker
docker run hello-worldQuick Test
Clone the repository and verify structure:
# Clone repository
git clone <repository-url>
cd B2B-Wholesale-AI
# Verify structure
ls -la backend/
ls -la frontend/
ls -la docs/Troubleshooting
Python Version Issues
If python3 --version shows an older version:
# macOS - set default
brew link --overwrite python@3.11
# Linux - use update-alternatives
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1Docker Permission Issues (Linux)
# Add user to docker group
sudo usermod -aG docker $USER
# Logout and login againPort Already in Use
Check and free up ports:
# Check what's using port 8001
lsof -i :8001
# Kill process if needed
kill -9 <PID>Next Steps
All set? Move on to:
Estimated Time: 30-45 minutes
Difficulty: Beginner