How mathieu7483/dashboard-pharma works
Pharmacy-Dashboard is an internal pharmacist web application for inventory, sales, people, scheduling, and operational records, with a natural-language assistant for stock and related queries. The main workflow is pharmacist interaction with the dashboard, HTTP requests to Flask endpoints, facade-mediated business operations, and persisted records. The README documents broader capabilities such as alerts, analytics, RBAC, and interaction checks; these are represented where the tree and excerpts support them. Some endpoint-to-facade links rely on SOURCE INDEX references rather than inspected endpoint bodies.
Main entry points: facade.py Facade service · app.py App and routing · ChatBot_engine.py Chatbot engine · clients.py Clients and doctors
Components 26
Dashboard client
- Dashboard UI
Client/javascript - Authentication UI
Client/javascript/auth.js - Inventory UI
Client/javascript/inventory.js - Dashboard views
Client/javascript/dashboard.js
Flask API
- App and routing
Server/app.py - Authentication API
Server/api/auth.py - Inventory API
Server/api/inventory.py - Products API
Server/api/products.py - Sales API
Server/api/sales.py - Analytics API
Server/api/analytics.py - Clients and doctors
Server/api/clients.py - Calendar API
Server/api/calendar_events.py - Operational records
Server/api - User management API
Server/api/users.py - Chatbot API
Server/api/chatbot.py
Business services
- Role access checks
Server/utils/decorator.py - Facade service
Server/services/facade.py
Domain and persistence
- Product and aliases
Server/models/product.py - Sales records
Server/models/sale.py - Client and doctor records
Server/models/client.py - Calendar events
Server/models/calendar.py - Other domain records
Server/models - Database access
Server/database/data_manager.py
Chatbot
- Chatbot engine
Server/core/chatbot/ChatBot_engine.py - Intent and entity analysis
Server/core/chatbot/NLUProcessor.py
Other components
- Pharmacist
Connections 38
- Pharmacist → Dashboard UI: uses
README.md - Dashboard UI → App and routing: sends requests
- Authentication UI → App and routing: authenticates through
- Inventory UI → App and routing: requests inventory
- Dashboard views → App and routing: requests dashboard data
- App and routing → Authentication API: registers
Server/app.py - App and routing → Inventory API: registers
Server/app.py - App and routing → Products API: registers
Server/app.py - App and routing → Sales API: registers
Server/app.py - App and routing → Analytics API: registers
Server/app.py - App and routing → Clients and doctors: registers
Server/app.py - App and routing → Calendar API: registers
Server/app.py - App and routing → Operational records: registers
Server/app.py - App and routing → User management API: registers
Server/app.py - Authentication API → Facade service: delegates
Server/api/auth.py - Inventory API → Facade service: delegates
Server/api/inventory.py - Products API → Facade service: delegates
Server/api/products.py - Sales API → Facade service: delegates
Server/api/sales.py - Analytics API → Facade service: delegates
Server/api/analytics.py - Clients and doctors → Facade service: delegates
Server/api/clients.py - User management API → Facade service: delegates
Server/api/users.py - Calendar API → Database access: queries
Server/api/calendar_events.py - Calendar API → Calendar events: uses
Server/api/calendar_events.py - Clients and doctors → Role access checks: checks admin access
Server/api/clients.py - User management API → Role access checks: checks admin access
Server/api/users.py - Facade service → Database access: queries and persists
Server/services/facade.py - Facade service → Product and aliases: manages
Server/services/facade.py - Facade service → Sales records: manages
Server/services/facade.py - Facade service → Client and doctor records: manages
Server/services/facade.py - Facade service → Calendar events: manages
Server/services/facade.py - Facade service → Other domain records: manages
Server/services/facade.py - Chatbot API → Chatbot engine: dispatches to
Server/api/chatbot.py - Chatbot engine → Intent and entity analysis: analyzes text with
Server/core/chatbot/ChatBot_engine.py - Chatbot engine → Facade service: uses services
Server/core/chatbot/ChatBot_engine.py - Chatbot engine → Product and aliases: queries stock and aliases
Server/core/chatbot/ChatBot_engine.py - Chatbot engine → Sales records: queries sales
Server/core/chatbot/ChatBot_engine.py - Chatbot engine → Calendar events: queries events
Server/core/chatbot/ChatBot_engine.py - Chatbot engine → Database access: queries records
Server/core/chatbot/ChatBot_engine.py