How misbahh2006/dairy_system works
Dairy System is a small React/FastAPI application: its visible frontend presents a landing page and requests a backend welcome message, while the backend also exposes project creation and listing backed by SQLite. The project API workflow runs from an API client through the FastAPI router, CRUD operations and SQLAlchemy model to storage; the supplied frontend does not expose that workflow. The graph preserves the documented and indexed UI modules. Edges reflect shown imports, calls and configuration; project API requests are not shown originating in the UI.
Main entry points: App.jsx App shell · project_routes.py Project routes · crud.py Project CRUD · database.py Database sessions
Components 16
Frontend
- React entry
frontend/src/main.jsx - App shell
frontend/src/App.jsx - Navigation bar
frontend/src/components/Navbar.jsx - Hero section
frontend/src/components/Hero.jsx - Footer
frontend/src/components/Footer.jsx - Smooth scrolling
frontend/src/hooks/useLenis.js - Theme settings
frontend/src/styles/theme.js
Backend API
- FastAPI app
backend/app/main.py - Project routes
backend/app/routes/project_routes.py
Project Data
- Project schemas
backend/app/schemas.py - Project CRUD
backend/app/crud.py - Project model
backend/app/models.py - Database sessions
backend/app/database.py
Other components
- Browser visitor
- API client
- SQLite database
Connections 17
- Browser visitor → React entry: opens app
frontend/src/main.jsx - React entry → App shell: renders
frontend/src/main.jsx - App shell → Navigation bar: renders
frontend/src/App.jsx - App shell → Hero section: renders
frontend/src/App.jsx - App shell → Footer: renders
frontend/src/App.jsx - App shell → Smooth scrolling: calls
frontend/src/App.jsx - App shell → Theme settings: configures
frontend/src/App.jsx - App shell → FastAPI app: fetches welcome
frontend/src/App.jsx - API client → Project routes: requests projects
- FastAPI app → Project routes: registers routes
backend/app/main.py - Project routes → Project schemas: validates responses
backend/app/routes/project_routes.py - Project routes → Project CRUD: calls
backend/app/routes/project_routes.py - Project routes → Database sessions: depends on session
backend/app/routes/project_routes.py - Project CRUD → Project model: creates and queries
backend/app/crud.py - Project CRUD → SQLite database: reads and writes
- Project model → Database sessions: uses base
backend/app/models.py - Database sessions → SQLite database: configures engine
backend/app/database.py