How aswinmohammed/vip-web-version works
VIP Tailors is a multi-branch tailoring ERP. Staff use the React app to manage orders, customers, inventory, employees, sales, expenses, reports and SMS; frontend API helpers send requests to the FastAPI service, which authenticates and scopes access before serving domain APIs backed by PostgreSQL. The graph preserves the README’s major product areas. Some backend routes and frontend features are unsampled, so links are limited to source-index references or documented request flow; no deployment machinery is included.
Main entry points: App.tsx Application shell · routers Business APIs · cloudApi.ts Cloud API client · database.py Database sessions
Components 33
Web application
- Application shell
App.tsx - App state
context/AppContext.ts - Cloud API client
utils/cloudApi.ts - Login
components/Login.tsx
API and access
- API application
backend/app/main.py - API router
backend/app/api/router.py - Authentication API
backend/app/api/routers/auth.py - Business APIs
backend/app/api/routers - Identity and scope
backend/app/dependencies.py - Token security
backend/app/security.py - API schemas
backend/app/schemas.py - Runtime settings
backend/app/core/config.py
Tailoring operations
- Orders and forms
components/Orders.tsx - Order entry
components/OrderForm.tsx - Customer management
components/Customers.tsx - Employee management
components/EmployeeManagement.tsx - Inventory
components/Inventory.tsx - Material sales
components/MaterialSales.tsx - Supplier management
components/SupplierManagement.tsx - Expenses
components/Expenses.tsx - Reports
components/Reports.tsx - Dashboard
components/Dashboard.tsx - Due orders
components/DueOrders.tsx - User administration
components/UserManagement.tsx - Invoice PDF service
backend/app/services/pdf.py
SMS operations
- SMS management
components/SmsManagement.tsx - SMS service
backend/app/services/sms.py - SMS API
backend/app/api/routers/sms.py - SMS worker
backend/scripts/run_sms_worker.py
Persistence
- Domain models
backend/app/models.py - Database sessions
backend/app/database.py - PostgreSQL
Other components
- Staff user
Connections 40
- Staff user → Application shell: uses
README.md - Application shell → Orders and forms: renders
App.tsx - Application shell → Order entry: renders
App.tsx - Application shell → Customer management: renders
App.tsx - Application shell → Employee management: renders
App.tsx - Application shell → Inventory: renders
App.tsx - Application shell → Material sales: renders
App.tsx - Application shell → Supplier management: renders
App.tsx - Application shell → Expenses: renders
App.tsx - Application shell → Reports: renders
App.tsx - Application shell → Dashboard: renders
App.tsx - Application shell → Due orders: renders
App.tsx - Application shell → Login: renders
App.tsx - Application shell → User administration: renders
App.tsx - Application shell → SMS management: renders
App.tsx - Order entry → Cloud API client: calls
utils/cloudApi.ts - Orders and forms → Cloud API client: calls
utils/cloudApi.ts - Employee management → Cloud API client: calls
components/EmployeeManagement.tsx - Due orders → Cloud API client: calls
components/DueOrders.tsx - SMS management → Cloud API client: calls
utils/cloudApi.ts - Cloud API client → API application: requests API
README.md - API application → API router: mounts routes
backend/app/main.py - API router → Authentication API: registers
backend/app/api/router.py - API router → Business APIs: registers
backend/app/api/router.py - API router → SMS API: registers
backend/app/api/router.py - Authentication API → Identity and scope: uses
backend/app/api/routers/auth.py - Identity and scope → Token security: validates tokens
backend/app/dependencies.py - Identity and scope → Database sessions: opens session
backend/app/dependencies.py - Identity and scope → Domain models: queries users
backend/app/dependencies.py - Database sessions → Runtime settings: loads settings
backend/app/database.py - Business APIs → Database sessions: uses sessions
backend/app/api/routers/orders.py - Business APIs → Domain models: uses models
backend/app/api/routers/orders.py - Business APIs → API schemas: uses schemas
backend/app/api/routers/orders.py - SMS API → SMS service: uses
backend/app/api/routers/sms.py - Business APIs → SMS service: queues messages
backend/app/api/routers/orders.py - Business APIs → Invoice PDF service: uses
backend/app/api/routers/orders.py - SMS worker → SMS service: runs
backend/scripts/run_sms_worker.py - API application → Database sessions: configures database
backend/app/main.py - API application → Runtime settings: loads settings
backend/app/main.py - Database sessions → PostgreSQL: reads and writes
README.md