How darrylmagdalaga-bot/e-medics works
This is a web-based database POS dashboard with pharmacy and warehouse inventory workflows. Users sign in, then the app selects role- and page-specific screens for dashboard monitoring, dispensing, product and stock management, orders, customers, reports, and settings. The frontend screens reference centralized API configuration, while a separate Express server and SQL-oriented setup scripts indicate a backend/data layer. The excerpts do not show the server routes or screen request calls, so those runtime connections are left unverified rather than inferred.
Main entry points: App.tsx Application Router · api-config.ts API Configuration · main.tsx Web Entry · dashboard-screen.tsx Dashboard
Components 18
Application Shell
- Application Router
src/app/App.tsx - Sign-in
src/app/components/login-screen.tsx - Navigation
src/app/components/sidebar.tsx - Top Bar
src/app/components/topbar.tsx - Web Entry
src/main.tsx
POS Operations
- Dashboard
src/app/components/dashboard-screen.tsx - POS Terminal
src/app/components/pos-terminal-screen.tsx - Orders
src/app/components/orders-screen.tsx - Customers
src/app/components/customers-screen.tsx
Inventory Management
- Pharmacy Stock
src/app/components/products-screen.tsx - Inventory
src/app/components/inventory-screen.tsx - Warehouse
src/app/components/warehouse-screen.tsx - Reports
src/app/components/reports-screen.tsx - Settings
src/app/components/settings-screen.tsx
Backend and Data
- API Configuration
src/app/api-config.ts - HTTP Server
server/index.cjs - SQL Database
Other components
- User
Connections 21
- User → Web Entry: opens
src/main.tsx - Web Entry → Application Router: renders
src/main.tsx - Application Router → Sign-in: renders
src/app/App.tsx - Application Router → Navigation: renders
src/app/App.tsx - Application Router → Top Bar: renders
src/app/App.tsx - Application Router → Dashboard: routes to
src/app/App.tsx - Application Router → POS Terminal: routes to
src/app/App.tsx - Application Router → Orders: routes to
src/app/App.tsx - Application Router → Customers: routes to
src/app/App.tsx - Application Router → Pharmacy Stock: routes to
src/app/App.tsx - Application Router → Inventory: routes to
src/app/App.tsx - Application Router → Warehouse: routes to
src/app/App.tsx - Application Router → Reports: routes to
src/app/App.tsx - Application Router → Settings: routes to
src/app/App.tsx - Dashboard → API Configuration: imports
src/app/components/dashboard-screen.tsx - POS Terminal → API Configuration: imports
src/app/components/pos-terminal-screen.tsx - Pharmacy Stock → API Configuration: imports
src/app/components/products-screen.tsx - Inventory → API Configuration: imports
src/app/components/inventory-screen.tsx - Warehouse → API Configuration: imports
src/app/components/warehouse-screen.tsx - HTTP Server → SQL Database: uses
- API Configuration → HTTP Server: configures endpoint