-
Open Terminal/PowerShell in this directory
-
Run the start script:
# Windows: start.bat # Linux/Mac: chmod +x start.sh && ./start.sh
-
Wait for services to start (automatic)
-
Test it's working:
curl http://localhost:5000/health
That's it! Your backend is running! 🎉
curl -X POST http://localhost:5000/api/auth/signup \
-H "Content-Type: application/json" \
-d "{\"name\":\"John Doe\",\"email\":\"john@example.com\",\"password\":\"SecurePass123\"}"curl -X POST http://localhost:5000/api/auth/login \
-H "Content-Type: application/json" \
-d "{\"email\":\"john@example.com\",\"password\":\"SecurePass123\"}"Copy the accessToken from the response!
curl -X POST http://localhost:5000/api/runtime/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN_HERE" \
-d "{\"code\":\"print('Hello, Zege!')\",\"language\":\"python\"}"🎉 You just executed code in a Docker container!
- Open Postman
- Import → Select
Zege_Backend_API.postman_collection.json - Run "Login" request
- Token auto-saved! ✅
- Test any endpoint - token is used automatically
This is the easiest way to explore all 26+ endpoints!
Edit .env file and add:
# AWS S3 (for file storage)
AWS_ACCESS_KEY_ID=your-key-here
AWS_SECRET_ACCESS_KEY=your-secret-here
# OpenAI (for AI features)
OPENAI_API_KEY=sk-your-key-here
# Change these secrets!
JWT_ACCESS_SECRET=change-me-in-production
JWT_REFRESH_SECRET=change-me-in-production- README.md - Overview and main docs
- API.md - All 26+ endpoints explained
- GETTING_STARTED.md - Quick start guide
- ARCHITECTURE.md - How it all works
- PROJECT_COMPLETE.md - Full feature list
src/
├── controllers/ ← Business logic
├── routes/ ← API endpoints
├── services/ ← Docker, S3, AI
├── models/ ← Database schemas
└── middlewares/ ← Auth, validation, errors
docker build -t zege-backend .
docker run -p 5000:5000 --env-file .env zege-backend# Update secrets in k8s/backend-deployment.yaml
kubectl apply -f k8s/
kubectl get pods -n zege-production# Check if Docker is running
docker info
# View logs
docker-compose logs backend
# Restart everything
docker-compose down && docker-compose up -dEdit .env and change:
PORT=8080 # or any free port# Restart MongoDB
docker-compose restart mongodb
# Check status
docker-compose psAfter docker-compose up -d:
| Service | Port | Status |
|---|---|---|
| Backend API | 5000 | ✅ Running |
| MongoDB | 27017 | ✅ Running |
| Redis | 6379 | ✅ Running |
Check with: docker-compose ps
docker-compose logs -f backenddocker-compose restart backenddocker-compose downdocker-compose down -v
docker system prune -f- Use Postman - Easiest way to test APIs
- Check logs -
docker-compose logs -fshows real-time logs - Health check - Always test
/healthendpoint first - Read API.md - Complete documentation of all endpoints
- Update .env - Add your AWS and OpenAI keys for full features
You'll know everything is working when:
✅ curl http://localhost:5000/health returns 200 OK
✅ You can signup and login successfully
✅ docker-compose ps shows all services "Up"
✅ You can execute code in Python/JavaScript
✅ Logs show "Server is healthy"
Your backend includes:
- ✅ User authentication (JWT)
- ✅ Project management
- ✅ Code execution (6 languages)
- ✅ AI assistant (GPT-4)
- ✅ File storage (S3)
- ✅ Real-time logs (WebSocket)
- ✅ Production security
- ✅ Auto-scaling ready
Now go build something amazing! 🚀
Something not working?
- Check
docker-compose logs backend - Verify
.envfile exists - Ensure Docker is running
- Test
http://localhost:5000/health - Review documentation files
Most issues are solved by:
docker-compose down
docker-compose up -d --force-recreate- ✅ Start backend →
start.batordocker-compose up -d - ✅ Import Postman → Test all endpoints
- ✅ Update .env → Add your API keys
- ✅ Test features → Signup, login, execute code
- ✅ Build frontend → Connect to this backend
- ✅ Deploy → Use Kubernetes manifests
🎉 Congratulations! Your production-ready backend is complete!
| What You Want | Read This |
|---|---|
| Quick start | THIS FILE |
| API reference | API.md |
| Setup details | SETUP.md |
| Architecture | ARCHITECTURE.md |
| Feature overview | README.md |
| Complete summary | PROJECT_COMPLETE.md |
Last Updated: September 30, 2025
Status: ✅ Production Ready
Version: 1.0.0
START NOW: Run start.bat (Windows) or ./start.sh (Linux/Mac)
🚀 Happy Coding! 🚀