How kirantm36/sajilo_byapar works
Sajilo Byapar is a shop-management application with a React frontend and Express/MySQL backend. The main user workflow spans customer and product records, inventory, sales, and credit tracking. The sampled source confirms dashboard inventory loading, user authentication requests, server route mounting, and several database operations. Other frontend pages and domain slices indicate additional capabilities, but their request wiring was not sampled, so those connections are left out.
Main entry points: App.tsx Route shell · app.js Express server · db.js MySQL database · Dashboard.tsx Dashboard
Components 24
Shop interface
- Frontend entry
frontend/src/main.tsx - Route shell
frontend/src/App.tsx - Dashboard
frontend/src/pages/Dashboard.tsx - Sales screen
frontend/src/pages/Sales.tsx - Products screen
frontend/src/pages/Products.tsx - Customer screens
frontend/src/pages/Customer.tsx - Credit screen
frontend/src/pages/Credit.tsx - Inventory screen
frontend/src/pages/Inventory.tsx - Customer auth
frontend/src/auth/CustomerLogin.tsx - Inventory state
frontend/src/store/inventorySlice.ts - User state
frontend/src/store/userSlice.ts
API server
- Express server
sqlServer/app.js - User routes
sqlServer/router/user.route.js - Category routes
sqlServer/router/category.route.js - Product routes
sqlServer/router/product.route.js - Sales routes
sqlServer/router/sales.route.js - Inventory routes
sqlServer/router/invetory.route.js
Shop operations
- User operations
sqlServer/controller/userController.js - Category operations
sqlServer/controller/categoryController.js - Product operations
sqlServer/controller/productController.js - Sales and credit
sqlServer/controller/salesController.js - Inventory operations
sqlServer/controller/inventoryController.js
Persistence
- MySQL database
sqlServer/db.js
Other components
- Shop staff
Connections 21
- Shop staff → Route shell: uses
- Frontend entry → Route shell: renders
- Route shell → Dashboard: routes
- Route shell → Sales screen: routes
- Route shell → Products screen: routes
- Route shell → Customer screens: routes
- Route shell → Credit screen: routes
- Route shell → Inventory screen: routes
- Route shell → Customer auth: routes
- Dashboard → Inventory state: dispatches
- User state → Express server: HTTP requests
- Express server → User routes: mounts
- Express server → Category routes: mounts
- Express server → Product routes: mounts
- Express server → Sales routes: mounts
- Express server → Inventory routes: mounts
- User operations → MySQL database: queries
- Category operations → MySQL database: queries
- Product operations → MySQL database: queries
- Sales and credit → MySQL database: queries
- Inventory operations → MySQL database: queries