Production-ready full-stack ML starter template with FastAPI, React, Docker, and MLflow.
- Backend: FastAPI + scikit-learn + MLflow
- Frontend: React + Vite + TypeScript + Tailwind
- Infra: Docker Compose + GitHub Actions CI
docker compose up --buildThen open http://localhost and try the Iris classifier demo.
backend/
app/
main.py # FastAPI app with /predict endpoint
schemas.py # Pydantic request/response models
ml/
train.py # Train and save the model
model.py # Load model and make predictions
frontend/
src/
App.tsx # Main app component
api/index.ts # API client
components/ # UI components
docker-compose.yml # Backend + Frontend + MLflow
# Backend
cd backend
pip install -r requirements.txt
python -m app.ml.train
uvicorn app.main:app --reload
# Frontend
cd frontend
npm install
npm run dev- Replace
ml/train.pywith your own model training code - Update
ml/model.pywith your prediction logic - Update
schemas.pywith your input/output schema - Update the frontend form to match your features
MIT