How infynuxsolutionsadmin/infypos-product works
INFYPOS is a multi-tenant retail EPOS and SaaS management platform. A cashier signs in, opens a shift, records sales and returns, and can work offline before queued events synchronize; tenant administrators manage catalog, stock, purchasing, customers, staff, and reporting. The repository contains an admin dashboard, an Electron-capable POS terminal, and NestJS backend code; duplicate backend trees are present, so the graph uses the sampled backend/ implementation. Most domain modules are unsampled, so their existence is represented without speculative call chains.
Main entry points: prisma.service.ts PostgreSQL data · routes/AppRoutes.tsx Admin routes · auth.service.ts Authentication · routes/AppRoutes.tsx POS routes
Components 31
Admin dashboard
- Admin routes
INFEPOS_FRONTEND/admin-dashboard/src/routes/AppRoutes.tsx - Landing and signup
INFEPOS_FRONTEND/admin-dashboard/src/pages/LandingPage.tsx - Subscription signup
INFEPOS_FRONTEND/admin-dashboard/src/pages/auth/components/SubscriptionSignupModal.tsx - Admin auth state
INFEPOS_FRONTEND/admin-dashboard/src/stores/authStore.ts - Retail operations
INFEPOS_FRONTEND/admin-dashboard/src/pages - Reports and dashboard
INFEPOS_FRONTEND/admin-dashboard/src/pages/reports/ReportsPage.tsx
POS terminal
- POS routes
INFEPOS_FRONTEND/pos-terminal/src/routes/AppRoutes.tsx - POS sign-in
INFEPOS_FRONTEND/pos-terminal/src/pages/LoginPage.tsx - Checkout and shifts
INFEPOS_FRONTEND/pos-terminal/src/pages/POSPage.tsx - Offline sync manager
INFEPOS_FRONTEND/pos-terminal/src/offline/useSyncManager.ts - Local event store
INFEPOS_FRONTEND/pos-terminal/src/services/localDb.ts - Sync API client
INFEPOS_FRONTEND/pos-terminal/src/api/sync.api.ts
Backend API
- NestJS API
backend/src/main.ts - Product catalog
backend/src/modules/products/products.controller.ts - Inventory management
backend/src/modules/inventory/inventory.controller.ts - Sales and VAT
backend/src/modules/sales - Purchasing and receipts
backend/src/modules/purchases - Stock adjustments and transfers
backend/src/modules/stock-transfers - Customer management
backend/src/modules/customers - Shift management
backend/src/modules/shifts - Business intelligence
backend/src/modules/reports/reports.controller.ts - PostgreSQL data
backend/src/database/prisma.service.ts
Identity and access
- Authentication
backend/src/modules/auth/auth.service.ts - Permission guard
backend/src/common/guards/permissions.guard.ts - Roles and permissions
backend/src/modules/roles
SaaS platform
- Tenant and store admin
backend/src/modules/tenants - Subscription billing
backend/src/modules/billing/billing.controller.ts - Customer portal
backend/src/modules/customer-portal
Other components
- Administrator
- Cashier
- Stripe
Connections 25
- Administrator → Admin routes: uses
INFEPOS_FRONTEND/admin-dashboard/src/routes/AppRoutes.tsx - Admin routes → Landing and signup: routes to
INFEPOS_FRONTEND/admin-dashboard/src/routes/AppRoutes.tsx - Admin routes → Retail operations: routes to
INFEPOS_FRONTEND/admin-dashboard/src/routes/AppRoutes.tsx - Admin routes → Reports and dashboard: routes to
INFEPOS_FRONTEND/admin-dashboard/src/routes/AppRoutes.tsx - Landing and signup → Subscription signup: offers signup
INFEPOS_FRONTEND/admin-dashboard/src/pages/LandingPage.tsx - Cashier → POS routes: uses
INFEPOS_FRONTEND/pos-terminal/src/routes/AppRoutes.tsx - POS routes → POS sign-in: routes to
INFEPOS_FRONTEND/pos-terminal/src/routes/AppRoutes.tsx - POS routes → Checkout and shifts: routes to
INFEPOS_FRONTEND/pos-terminal/src/routes/AppRoutes.tsx - Offline sync manager → Local event store: reads and updates
INFEPOS_FRONTEND/pos-terminal/src/offline/useSyncManager.ts - Offline sync manager → Sync API client: submits events
INFEPOS_FRONTEND/pos-terminal/src/offline/useSyncManager.ts - POS sign-in → Authentication: authenticates via API
- Checkout and shifts → Sales and VAT: records sales
- Checkout and shifts → Shift management: operates shifts
- Sync API client → NestJS API: sends sync requests
- NestJS API → Authentication: dispatches auth
- Authentication → PostgreSQL data: reads and writes
backend/src/modules/auth/auth.service.ts - Product catalog → PostgreSQL data: manages catalog
- Inventory management → PostgreSQL data: manages stock
- Product catalog → PostgreSQL data: persists products
- Business intelligence → PostgreSQL data: aggregates data
- Business intelligence → NestJS API: serves reports
backend/src/modules/reports/reports.controller.ts - Permission guard → Authentication: loads permissions
backend/src/common/guards/permissions.guard.ts - Roles and permissions → Permission guard: defines access rules
- Subscription billing → Stripe: creates billing sessions
backend/src/modules/billing/billing.controller.ts - Subscription signup → Subscription billing: starts subscription