How eth0voidc/eov_system_web_base works
EOV digitizes employee credit and small-store inventory operations: staff record credit purchases and incoming stock, while administrators manage accounts, employees, products, reporting, and deductions. The principal flow is a role-protected web interface calling backend routes and domain controllers, which query PostgreSQL; product photos are uploaded to Cloudinary. The graph preserves the documented inventory, delivery, credit, settlement, and reporting capabilities. Some API-to-backend links are not shown in sampled code, so they are omitted; unsampled modules are represented only where the tree and README establish their role.
Main entry points: App.jsx Role-based app routes · server.js Express API server · authRoutes.js Authentication routes · ProductView.jsx Staff purchasing
Components 34
Web application
- Role-based app routes
frontend/src/App.jsx - Employee management
frontend/src/components/components-admin/RegisterEmployee.jsx - Inventory management
frontend/src/components/components-admin/InventoryViewAdmin.jsx - Staff purchasing
frontend/src/components/components-staff/ProductView.jsx - Delivery intake
frontend/src/components/components-staff/DeliveryView.jsx - Employee records
frontend/src/components/components-staff/RecordsView.jsx - Admin analytics
frontend/src/components/components-admin/DashboardOverviewAdmin.jsx - Deduction processing
frontend/src/components/components-admin/DeductionProcessing.jsx - Delivery history
frontend/src/components/components-admin/DeliveryHistory.jsx - Transaction history
frontend/src/components/components-admin/TransactionHistory.jsx - Employee API client
frontend/src/api/employees.js - Product API client
frontend/src/api/products.js - Category API client
frontend/src/api/categories.js - Delivery API client
frontend/src/api/delivery.js - Records API client
frontend/src/api/records.js - Transaction API client
frontend/src/api/transaction.js - Deductions API client
frontend/src/api/deductions.js - Dashboard API client
frontend/src/api/dashboard.js
Identity and access
- Sign-in and accounts
frontend/src/components/Loginform.jsx - Authentication API client
frontend/src/api/auth.js - Authentication routes
backend/routes/authRoutes.js - Token and role checks
backend/middleware/authMiddleware.js - Authentication controller
backend/controllers/authController.js
Store operations
- Employee routes
backend/routes/employeeRoutes.js - Employee management
backend/controllers/employeeController.js - Product routes
backend/routes/productRoutes.js - Product and image management
backend/controllers/productController.js - Category routes
backend/routes/categoryRoutes.js - Category management
backend/controllers/categoryController.js - Delivery routes
backend/routes/deliveryRoutes.js - Delivery management
backend/controllers/deliveryController.js
Backend platform
- Express API server
backend/server.js
Other components
- Staff user
- Admin user
Connections 46
- Staff user → Role-based app routes: opens
frontend/src/App.jsx - Admin user → Role-based app routes: opens
frontend/src/App.jsx - Role-based app routes → Sign-in and accounts: routes to
frontend/src/App.jsx - Role-based app routes → Employee management: routes to
frontend/src/App.jsx - Role-based app routes → Inventory management: routes to
frontend/src/App.jsx - Role-based app routes → Staff purchasing: routes to
frontend/src/App.jsx - Role-based app routes → Delivery intake: routes to
frontend/src/App.jsx - Role-based app routes → Employee records: routes to
frontend/src/App.jsx - Role-based app routes → Admin analytics: routes to
frontend/src/App.jsx - Role-based app routes → Deduction processing: routes to
frontend/src/App.jsx - Role-based app routes → Delivery history: routes to
frontend/src/App.jsx - Role-based app routes → Transaction history: routes to
frontend/src/App.jsx - Sign-in and accounts → Authentication API client: calls
frontend/src/components/Loginform.jsx - Employee management → Employee API client: calls
frontend/src/components/components-admin/RegisterEmployee.jsx - Inventory management → Product API client: calls
frontend/src/components/components-admin/InventoryViewAdmin.jsx - Inventory management → Category API client: calls
frontend/src/components/components-admin/InventoryViewAdmin.jsx - Staff purchasing → Employee API client: calls
frontend/src/components/components-staff/ProductView.jsx - Staff purchasing → Transaction API client: calls
frontend/src/components/components-staff/ProductView.jsx - Staff purchasing → Product API client: calls
frontend/src/components/components-staff/ProductView.jsx - Staff purchasing → Category API client: calls
frontend/src/components/components-staff/ProductView.jsx - Delivery intake → Product API client: calls
frontend/src/components/components-staff/DeliveryView.jsx - Delivery intake → Delivery API client: calls
frontend/src/components/components-staff/DeliveryView.jsx - Employee records → Employee API client: calls
frontend/src/components/components-staff/RecordsView.jsx - Employee records → Records API client: calls
frontend/src/components/components-staff/RecordsView.jsx - Admin analytics → Dashboard API client: calls
frontend/src/components/components-admin/DashboardOverviewAdmin.jsx - Express API server → Authentication routes: mounts
backend/server.js - Express API server → Product routes: mounts
backend/server.js - Express API server → Category routes: mounts
backend/server.js - Express API server → Employee routes: mounts
backend/server.js - Express API server → Delivery routes: mounts
backend/server.js - Express API server → Authentication routes: mounts
backend/server.js - Express API server → Employee routes: mounts
backend/server.js - Express API server → Authentication routes: mounts
backend/server.js - Express API server → Authentication routes: mounts
backend/server.js - Express API server → Employee routes: mounts
backend/server.js - Authentication routes → Authentication controller: dispatches
backend/routes/authRoutes.js - Authentication routes → Token and role checks: checks
backend/routes/authRoutes.js - Employee routes → Employee management: dispatches
backend/routes/employeeRoutes.js - Employee routes → Token and role checks: checks
backend/routes/employeeRoutes.js - Product routes → Product and image management: dispatches
backend/routes/productRoutes.js - Product routes → Token and role checks: checks
backend/routes/productRoutes.js - Delivery routes → Delivery management: dispatches
backend/routes/deliveryRoutes.js - Delivery routes → Token and role checks: checks
backend/routes/deliveryRoutes.js - Category routes → Category management: dispatches
backend/routes/categoryRoutes.js - Category routes → Token and role checks: checks
backend/routes/categoryRoutes.js - Product and image management → Product and image management: uploads photos
backend/controllers/productController.js