How anurag-shankar-maurya/medicos works
This is a pharmacy-management application: staff sign in, manage medicine inventory, build a cart, complete billing and sales, then review dashboards, reports and notifications; administrators also manage staff. The React client routes these workflows through a shared API client to a Django API. The backend tree exposes medicine and user domains, but most backend request handlers and URL configuration were not sampled, so their internal dispatch relationships are not asserted. The README is empty; unsampled frontend capability branches are retained from the route map and source index.
Main entry points: router.tsx Protected routes · apiClient.ts API client · BillingPage.tsx Billing and checkout · SalesPage.tsx Sales history
Components 22
React application
- Protected routes
reactFrontend/app/router.tsx - Authentication
reactFrontend/features/auth/LoginPage.tsx - Auth and app state
reactFrontend/app/providers.tsx - API client
reactFrontend/services/apiClient.ts - Staff management
reactFrontend/features/staff/StaffPage.tsx
Inventory and sales
- Medicine inventory
reactFrontend/features/inventory/MedicineList.tsx - Shopping cart
reactFrontend/app/CartContext.tsx - Cart view
reactFrontend/features/cart/CartPage.tsx - Billing and checkout
reactFrontend/features/billing/BillingPage.tsx - Sales history
reactFrontend/features/sales/SalesPage.tsx - Sale details
reactFrontend/features/sales/SaleDetailPage.tsx - Receipt display
reactFrontend/components/common/ReceiptModal.tsx
Operations insights
- Dashboard analytics
reactFrontend/features/dashboard/DashboardPage.tsx - Reports
reactFrontend/features/reports/ReportsPage.tsx - Notifications
reactFrontend/features/notifications/NotificationsPage.tsx
Django API
- Django API
djangoBackend/project/urls.py - Medicine handlers
djangoBackend/apps/medicines/views.py - Medicine and sales data
djangoBackend/apps/medicines/models.py - Dashboard data
djangoBackend/apps/medicines/dashboard_views.py - User handlers
djangoBackend/apps/users/views.py - User data
djangoBackend/apps/users/models.py
Other components
- Pharmacy staff
Connections 34
- Pharmacy staff → Authentication: signs in
- Pharmacy staff → Medicine inventory: manages stock
- Pharmacy staff → Billing and checkout: checks out
- Protected routes → Authentication: routes to
reactFrontend/app/router.tsx - Protected routes → Dashboard analytics: routes to
reactFrontend/app/router.tsx - Protected routes → Medicine inventory: routes to
reactFrontend/app/router.tsx - Protected routes → Cart view: routes to
reactFrontend/app/router.tsx - Protected routes → Billing and checkout: routes to
reactFrontend/app/router.tsx - Protected routes → Sales history: routes to
reactFrontend/app/router.tsx - Protected routes → Sale details: routes to
reactFrontend/app/router.tsx - Protected routes → Notifications: routes to
reactFrontend/app/router.tsx - Protected routes → Reports: routes to
reactFrontend/app/router.tsx - Protected routes → Staff management: routes to
reactFrontend/app/router.tsx - Protected routes → Auth and app state: guards with
reactFrontend/app/router.tsx - Authentication → Auth and app state: uses auth state
reactFrontend/features/auth/LoginPage.tsx - Medicine inventory → API client: fetches inventory
reactFrontend/features/inventory/MedicineList.tsx - Shopping cart → API client: updates cart
reactFrontend/app/CartContext.tsx - Cart view → Shopping cart: uses cart state
reactFrontend/features/cart/CartPage.tsx - Billing and checkout → API client: submits checkout
reactFrontend/features/billing/BillingPage.tsx - Billing and checkout → Shopping cart: uses cart state
reactFrontend/features/billing/BillingPage.tsx - Sales history → API client: loads sales
reactFrontend/features/sales/SalesPage.tsx - Sale details → API client: loads sale
reactFrontend/features/sales/SaleDetailPage.tsx - Sales history → Receipt display: displays receipt
reactFrontend/features/sales/SalesPage.tsx - Sale details → Receipt display: displays receipt
reactFrontend/features/sales/SaleDetailPage.tsx - Dashboard analytics → API client: loads metrics
reactFrontend/features/dashboard/DashboardPage.tsx - Reports → API client: requests reports
reactFrontend/features/reports/ReportsPage.tsx - Notifications → API client: loads alerts
reactFrontend/features/notifications/NotificationsPage.tsx - Staff management → API client: manages users
reactFrontend/features/staff/StaffPage.tsx - API client → Django API: HTTP requests
reactFrontend/services/apiClient.ts - Django API → Medicine handlers: dispatches requests
- Django API → User handlers: dispatches requests
- Medicine handlers → Medicine and sales data: uses domain data
- Dashboard data → Medicine and sales data: queries data
djangoBackend/apps/medicines/dashboard_views.py - User handlers → User data: uses user data