# Make setup script executable (if not already)
chmod +x scripts/setup.sh
# Run automated setup
./scripts/setup.shThis will:
- ✅ Check prerequisites (Bun, Docker, pnpm)
- ✅ Install all dependencies
- ✅ Start Docker services (Postgres + Redis)
- ✅ Wait for services to be healthy
Edit .env file (already created from template):
# Optional: Add better RPC endpoints for production
HELIUS_API_KEY=your_key_here
QUICKNODE_URL=your_url_here
# Generate secure JWT secret
JWT_SECRET=$(openssl rand -base64 32)# Start all services
pnpm devThis will start:
- API Gateway on
http://localhost:3000 - Swagger docs on
http://localhost:3000/docs
# Test API Gateway
curl http://localhost:3000/health
# Should return:
# {"status":"ok","timestamp":1234567890,"uptime":10.5,"version":"1.0.0"}cd apps/api-gateway
bun run dev# Docker services logs
docker-compose logs -f
# Specific service
docker-compose logs -f postgres# PostgreSQL (via pgAdmin)
open http://localhost:5050
# Email: admin@trading.local
# Password: admin
# Redis (via Redis Commander)
open http://localhost:8081# Stop Docker services
docker-compose down
# Stop with volume cleanup
docker-compose down -v-
Learn Solana (if not familiar yet)
- Read: SOLANA_LEARNING_ROADMAP.md
- Time: 2-3 days (4-6h/day)
-
Study Architecture
- Read: README.md
- Understand microservices structure
- Time: 1-2 hours
-
Start Coding
- Begin with Price Service
- Then Order Service
- Follow 14-day roadmap
# Check Docker status
docker ps
# View logs
docker-compose logs
# Restart services
docker-compose restart# Find process using port 3000
lsof -i :3000
# Kill process
kill -9 <PID>
# Or change port in .env
API_PORT=3001# Clear cache
pnpm store prune
# Try again
pnpm install# Install Bun
curl -fsSL https://bun.sh/install | bash
# Add to PATH (usually automatic)
source ~/.bashrc # or ~/.zshrc- Check README.md for detailed docs
- Check SOLANA_LEARNING_ROADMAP.md for learning resources
- Open an issue on GitHub
Let's coding! 🎉