-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
massoudsh edited this page Jan 30, 2026
·
1 revision
This guide will help you set up and run the Octopus Trading Platform (Findash) on your local machine.
| Requirement | Minimum | Recommended |
|---|---|---|
| CPU | 4 cores | 8+ cores |
| RAM | 8GB | 16GB+ |
| Storage | 50GB SSD | 100GB+ SSD |
| OS | macOS 12+, Ubuntu 20.04+, Windows 10+ | macOS 13+, Ubuntu 22.04+ |
- Node.js: 18.x or higher
- Python: 3.10 or higher
- PostgreSQL: 14+ (optional for development)
- Redis: 7+ (optional for development)
- Docker: 24.0+ (for containerized deployment)
- Git: Latest version
git clone https://github.com/massoudsh/Findash.git
cd Findash# Create virtual environment
python3 -m venv venv
# Activate virtual environment
# macOS/Linux:
source venv/bin/activate
# Windows:
venv\Scripts\activate
# Install dependencies
pip install -r requirements.txtcd frontend-nextjs
npm install
cd ..# Copy the example environment file
cp env.example .env
# Edit .env with your configuration
# At minimum, you need:
# - SECRET_KEY (generate a random string)
# - JWT_SECRET_KEY (generate a random string)
# - DATABASE_URL (optional for dev mode)
# - REDIS_URL (optional for dev mode)Minimal .env for Development:
# Environment
ENVIRONMENT=development
DEBUG=true
# Security (generate random strings)
SECRET_KEY=your-secret-key-here-change-in-production
JWT_SECRET_KEY=your-jwt-secret-key-here-change-in-production
# Database (optional - app runs in dev mode without it)
DATABASE_URL=postgresql://postgres:password@localhost:5432/trading_db
# Redis (optional - app runs in dev mode without it)
REDIS_URL=redis://localhost:6379/0Terminal 1 - Backend:
python3 start.py --reloadTerminal 2 - Frontend:
cd frontend-nextjs
npm run dev| Service | URL |
|---|---|
| Frontend | http://localhost:3000 |
| Backend API | http://localhost:8000 |
| API Docs (Swagger) | http://localhost:8000/docs |
| API Docs (ReDoc) | http://localhost:8000/redoc |
# Start core services (API, Frontend, DB, Redis, Celery)
docker compose -f docker-compose-core.yml up -d
# View logs
docker compose -f docker-compose-core.yml logs -f# Start all 24 services
docker compose -f docker-compose-complete.yml up -d
# View logs
docker compose -f docker-compose-complete.yml logs -f# View available commands
make help
# Start development environment
make dev
# Run tests
make test
# Build Docker images
make buildIf you want to use PostgreSQL with full features:
# Start PostgreSQL container
docker run -d \
--name findash-postgres \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=password \
-e POSTGRES_DB=trading_db \
-p 5432:5432 \
timescale/timescaledb:latest-pg15# Initialize database with Alembic
alembic upgrade headFor full caching and pub/sub functionality:
docker run -d \
--name findash-redis \
-p 6379:6379 \
redis:7-alpine# Check backend health
curl http://localhost:8000/health
# Expected response:
# {"status": "healthy", "timestamp": "..."}Visit http://localhost:8000/docs to see the interactive API documentation.
# Find process using port 8000
lsof -i :8000
# Kill the process
kill -9 <PID># Upgrade pip first
pip install --upgrade pip
# Install with verbose output
pip install -r requirements.txt -v# Clear node_modules and reinstall
cd frontend-nextjs
rm -rf node_modules package-lock.json
npm installThe application runs in development mode without database. If you need database:
# Check if PostgreSQL is running
pg_isready -h localhost -p 5432
# Check connection string in .env
DATABASE_URL=postgresql://user:password@localhost:5432/dbname# Ensure .env file exists
ls -la .env
# Check file contents
cat .env- Architecture - Understand the system architecture
- API Reference - Explore available API endpoints
- AI Agents - Learn about the 11 AI agents
- Configuration - Advanced configuration options
For testing purposes, use these demo credentials:
| Field | Value |
|---|---|
| demo@octopus.trading | |
| Password | demo123 |
Note: Demo credentials are for local development only.
Octopus Trading Platform | GitHub | Report Issue | MIT License