# Start everything with one command
./start-dev.sh# Start LeanXcale database and backend API
docker-compose up -d leanxcale-db backend
# Check if services are running
curl http://localhost:8000/healthcd frontend
npm install
npm run dev- Docker: Backend runs in Docker with LeanXcale database
- Hot Reload: Backend supports hot reload in development
- Logs:
docker-compose logs -f backend
- Local: Frontend runs locally with Node.js/Vite
- Hot Reload: Vite provides instant hot reload
- Debugging: Full access to browser dev tools
-
Copy environment file:
cp env.example .env
-
Edit
.envand add your OpenAI API key:OPENAI_API_KEY=your_actual_api_key_here -
Start services:
./start-dev.sh
| Service | URL | Description |
|---|---|---|
| Frontend | http://localhost:5173 | React/Vite development server |
| Backend API | http://localhost:8000 | FastAPI backend |
| API Docs | http://localhost:8000/docs | Swagger documentation |
| LeanXcale DB | localhost:1529 | Database (internal) |
# Check database logs
docker-compose logs leanxcale-db
# Test connection
docker-compose exec backend python -c "from models.database import get_engine; print(get_engine())"# Clear node modules and reinstall
cd frontend
rm -rf node_modules package-lock.json
npm install
npm run dev# Rebuild backend container
docker-compose build backend
docker-compose up -d backendFor production, uncomment the frontend service in docker-compose.yml and use:
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d