Least-cost dairy-cattle ration formulation: an API that optimizes and evaluates diets, and a Progressive Web App that farmers and extension workers use.
| Folder | What it is | Stack |
|---|---|---|
backend/ |
API, optimization engine, reports, feed-library sync | FastAPI, PostgreSQL, Celery + Redis, pymoo |
frontend/ |
PWA (web app); see frontend/README.md |
Next.js 14, React 18, TypeScript |
Backend (from backend/, needs a .env copied from .env.example):
python -m venv .venv && .venv/bin/pip install -r requirements.txt
.venv/bin/python -m uvicorn app.main:app --reload --port 8000Frontend (from frontend/, needs a .env.development copied from .env.example):
npm install
npm run dev # http://localhost:3000mainis protected: work on a branch and open a pull request.- CI: CodeQL and dependency review on every PR; the frontend quality gate
(
.github/workflows/frontend-quality-gate.yml) runs whenfrontend/changes. - Code owners:
.github/CODEOWNERS. - Security issues: see
SECURITY.md.