How heminados/inventorygo-app works
InventoryGO is an inventory and operations system with an admin web interface, a mobile client, and an Express API. Users sign in, then manage inventory, orders, tasks, employees, reports, and system settings; mobile users can also work with offline caching and queued writes. The excerpts show application routing, offline storage, and selected API paths, but not most screen-to-API calls or all backend controller/service implementations, so those relationships are omitted where they cannot be verified.
Main entry points: src/App.tsx Admin shell · client/App.tsx Mobile app shell · MainDrawer.tsx Main navigation · routes API route modules
Components 34
Admin web
- Admin shell
admin/src/App.tsx - Admin login
admin/src/components/AdminLogin.tsx - Dashboard
admin/src/components/HomePage.tsx - Inventory management
admin/src/components/Inventory.tsx - Order management
admin/src/components/OrderManage.tsx - Task management
admin/src/components/TaskManage.tsx - Employee management
admin/src/components/EmployeeManage.tsx - Reports
admin/src/components/Reports.tsx - Back office
admin/src/components/BackOffice.tsx
Mobile app
- Mobile app shell
client/App.tsx - Main navigation
client/navigation/MainDrawer.tsx - Mobile login
client/screens/LoginScreen.tsx - Mobile dashboard
client/screens/DashboardScreen.tsx - Mobile inventory
client/screens/ItamManageScreen.tsx - Item search
client/screens/SearchScreen.tsx - Open orders
client/screens/OpenOrderScreen.tsx - My tasks
client/screens/TasksScreen.tsx
API and domain
- Express application
server/app.js - Authentication
server/controllers/auth.controller.js - Item controller
server/controllers/item.controller.js - Item service
server/services/item.service.js - Order controller
server/controllers/order.controller.js - Order service
server/services/order.service.js - Task controller
server/controllers/task.controller.js - Task service
server/services/task.service.js - Report service
server/services/report.service.js - Settings service
server/services/settings.service.js - API route modules
server/routes
Persistence
- Offline SQLite
client/db/database.ts - Prisma client
server/config/prisma.js - User model access
server/models/user.model.js
Other components
- Admin user
- Mobile user
- HTTP API
Connections 36
- Admin user → Admin shell: uses
admin/src/App.tsx - Admin shell → Admin login: shows when unauthenticated
admin/src/App.tsx - Admin shell → Dashboard: routes to
admin/src/App.tsx - Admin shell → Inventory management: routes to
admin/src/App.tsx - Admin shell → Order management: routes to
admin/src/App.tsx - Admin shell → Task management: routes to
admin/src/App.tsx - Admin shell → Employee management: routes to
admin/src/App.tsx - Admin shell → Reports: routes to
admin/src/App.tsx - Admin shell → Back office: routes to
admin/src/App.tsx - Mobile user → Mobile app shell: uses
client/App.tsx - Mobile app shell → Mobile login: starts at
client/App.tsx - Mobile app shell → Main navigation: navigates to
client/App.tsx - Mobile app shell → Mobile inventory: registers screen
client/App.tsx - Main navigation → Mobile dashboard: navigates to
client/navigation/MainDrawer.tsx - Main navigation → Item search: navigates to
client/navigation/MainDrawer.tsx - Main navigation → Open orders: navigates to
client/navigation/MainDrawer.tsx - Main navigation → My tasks: navigates to
client/navigation/MainDrawer.tsx - Mobile app shell → Offline SQLite: initializes
client/App.tsx - Mobile app shell → HTTP API: starts sync listener
client/App.tsx - My tasks → HTTP API: requests tasks
client/screens/TasksScreen.tsx - HTTP API → Express application: serves requests
- Express application → API route modules: mounts routes
server/app.js - API route modules → Order controller: dispatches order requests
server/routes/order.routes.js - API route modules → Task controller: dispatches task requests
server/routes/task.routes.js - API route modules → Item controller: dispatches item requests
server/routes/item.routes.js - Order controller → Order service: calls
server/controllers/order.controller.js - Task controller → Task service: calls
server/controllers/task.controller.js - Item controller → Item service: calls
server/controllers/item.controller.js - Item controller → Report service: logs inventory changes
server/controllers/item.controller.js - Order service → Prisma client: uses
server/services/order.service.js - Task service → Prisma client: uses
server/services/task.service.js - Report service → Prisma client: uses
server/services/report.service.js - Authentication → User model access: authenticates via
- User model access → Prisma client: queries
server/models/user.model.js - Order controller → API route modules: receives routed calls
server/routes/order.routes.js - HTTP API → Offline SQLite: offline cache and outbox