Quick Start Guide
Get up and running with the Sprout platform in minutes.
Prerequisites Check
Before starting, ensure you have:
- ✅ Node.js 18+ installed
- ✅ Bun installed
- ✅ Docker installed and running
- ✅ Doppler CLI installed and authenticated
Step 1: Clone and Setup Doppler
# Navigate to sprout directory
cd /Users/stef/apps/sprout
# Setup Doppler (if not already done)
doppler setup
Step 2: Start Docker Services
# Start PostgreSQL and Redis
cd sprout_backend
docker-compose up -d
# Verify services are running
docker ps
Step 3: Install Dependencies
# Backend
cd sprout_backend
bun install
# ETL Service
cd ../sprout_etl
bun install
# Frontend Dashboard
cd ../pricing_dashboard
bun install
Step 4: Setup Database
# Run migrations for backend
cd sprout_backend
doppler run -- npx prisma migrate dev
# Run migrations for ETL (if separate database)
cd ../sprout_etl
doppler run -- npx prisma migrate dev
Step 5: Start Services
Terminal 1: Backend API
cd sprout_backend
doppler run -- bun run start:dev
Terminal 2: Backend Worker
cd sprout_backend
doppler run -- bun run worker:dev
Terminal 3: ETL Service
cd sprout_etl
doppler run -- bun run start:dev
Terminal 4: Frontend Dashboard
cd pricing_dashboard
bun run dev
Step 6: Verify Services
- Backend API: http://localhost:3000
- Backend Worker: http://localhost:4001 (metrics endpoint)
- ETL Service: http://localhost:3001
- Frontend Dashboard: http://localhost:5173
- Bull Board (Queue UI): http://localhost:3000/queues
Common Issues
Port Already in Use
# Find what's using the port
lsof -i :3000
# Kill the process or change the port
Database Connection Failed
# Check Docker containers
docker ps
# Check database URL in Doppler
doppler secrets get DATABASE_URL
Missing Environment Variables
All required variables should be in Doppler. Check the service's config file:
sprout_backend/src/config.tssprout_etl/src/config.ts
Next Steps
- Explore the Architecture Documentation
- Review Development Commands
- Check Repository Details
Minimum Viable Setup
If you only need to work on one service:
-
For Backend Development:
cd sprout_backend
docker-compose up -d
bun install
doppler run -- npx prisma migrate dev
doppler run -- bun run start:dev -
For Frontend Development:
cd pricing_dashboard
bun install
bun run dev -
For ETL Development:
cd sprout_etl
docker-compose up -d
bun install
doppler run -- npx prisma migrate dev
doppler run -- bun run start:dev
Getting Help
- Check the Environment Setup Guide
- Review Repository-Specific Documentation
- Check Active Development Status