How asshzzz/breedify works
Breedify is a cattle and buffalo evaluation product whose main workflow is capturing or uploading an animal image, predicting its breed, and presenting a saved classification record. The web app also provides records, reports, accounts/settings, and a livestock marketplace with chats. The graph reflects the sampled Express routes/controllers and documented frontend capabilities; several frontend-to-API links and unsampled subsystems are documented or indicated as unverified rather than inferred from names alone.
Main entry points: api.js API client · App.jsx Web routes · app.js API route mounting · record.model.js Animal records
Components 29
Web application
- Web routes
frontend/src/App.jsx - Camera capture
frontend/src/pages/Capture.jsx - Image upload
frontend/src/pages/UploadImage.jsx - Classification result
frontend/src/pages/Result.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Records browser
frontend/src/pages/Records.jsx - Analytics reports
frontend/src/pages/Reports.jsx - Accounts and settings
frontend/src/pages/Register.jsx - API client
frontend/src/api.js
Animal evaluation
- Breed prediction
backend/src/controllers/predict.controller.js - Image processing
backend/src/controllers/image.controller.js - Roboflow workflow
- Cloudinary images
backend/src/utils/cloudinary.js
API and persistence
- Animal records
backend/src/models/record.model.js - Record endpoints
backend/src/routes/record.routes.js - Account endpoints
backend/src/routes/user.routes.js - Account services
backend/src/controllers/user.controller.js - JWT authentication
backend/src/middlewares/auth.middleware.js - Report generation
backend/src/controllers/report.controller.js - Report data
backend/src/models/report.model.js - API route mounting
backend/src/app.js
Marketplace and chat
- Listing management
frontend/src/pages/SellAnimal.jsx - Marketplace chats
frontend/src/pages/Chats.jsx - Listing and chat routes
backend/src/routes/listing.routes.js - Listings
backend/src/models/listing.model.js - Realtime chat
backend/src/socket.js
Other components
- Animal evaluator
- Livestock seller or buyer
- Bharat Pashudhan App
Connections 40
- Animal evaluator → Web routes: uses
frontend/src/App.jsx - Web routes → Camera capture: routes to
frontend/src/App.jsx - Web routes → Image upload: routes to
frontend/src/App.jsx - Web routes → Classification result: routes to
frontend/src/App.jsx - Web routes → Dashboard: routes to
frontend/src/App.jsx - Web routes → Records browser: routes to
frontend/src/App.jsx - Web routes → Analytics reports: routes to
frontend/src/App.jsx - Web routes → Accounts and settings: routes to
frontend/src/App.jsx - Camera capture → API client: submits details
- Image upload → API client: requests prediction
- Records browser → API client: fetches records
- Analytics reports → API client: requests reports
- API client → Record endpoints: calls records API
README.md - API client → Account endpoints: calls account API
README.md - API client → Report generation: requests reports
README.md - API route mounting → Record endpoints: mounts
backend/src/app.js - API route mounting → Account endpoints: mounts
backend/src/app.js - API route mounting → Report generation: mounts report routes
backend/src/app.js - API route mounting → Listing and chat routes: mounts
backend/src/app.js - API route mounting → Breed prediction: mounts prediction route
backend/src/app.js - Record endpoints → Animal records: reads and writes
backend/src/routes/record.routes.js - Record endpoints → JWT authentication: authenticates
backend/src/routes/record.routes.js - Account endpoints → Account services: dispatches
backend/src/routes/user.routes.js - Account endpoints → JWT authentication: authenticates
backend/src/routes/user.routes.js - Account services → Animal records: uses account model
- JWT authentication → Account services: loads user
- Breed prediction → Roboflow workflow: classifies image
backend/src/controllers/predict.controller.js - Breed prediction → Cloudinary images: uploads image
backend/src/controllers/predict.controller.js - Breed prediction → Animal records: creates evaluation
backend/src/controllers/predict.controller.js - Image processing → Cloudinary images: uploads image
backend/src/controllers/image.controller.js - Image processing → Animal records: updates evaluation
backend/src/controllers/image.controller.js - Report generation → Report data: reads report data
backend/src/controllers/report.controller.js - Livestock seller or buyer → Listing management: creates listings
- Livestock seller or buyer → Marketplace chats: uses marketplace
- Listing management → API client: uses listing API
frontend/src/pages/SellAnimal.jsx - Marketplace chats → API client: uses chat API
- Listing and chat routes → Listings: reads and writes
backend/src/routes/listing.routes.js - Listing and chat routes → JWT authentication: authenticates
backend/src/routes/listing.routes.js - Listing and chat routes → Realtime chat: dispatches chat
- Animal records → Bharat Pashudhan App: exports records
README.md