How nirmaan-digital/bismilla works
Bismilla Chicken Center is a chicken-distribution order, delivery, and payment management application for administrators, retailers, and drivers. Retailers place orders and pay; administrators manage business operations, while drivers handle deliveries and collections. The main payment workflow runs from the retailer interface through the API to gateway checkout, then settles the transaction into order balances and ledgers. The README documents that flow and the product capabilities; some unsampled domain implementations are represented by their exact source directories, and links are included only where the supplied evidence supports them.
Main entry points: server.js HTTP API server · AppRoutes.jsx Role-based routes · paymentController.js Payment controller · main.jsx Client entry
Components 21
Client application
- Client entry
client/src/main.jsx - Role-based routes
client/src/routes/AppRoutes.jsx - Retailer ordering
client/src/pages/retailer/RetailerPlaceOrder.jsx - Retailer payments
client/src/pages/retailer/RetailerPayments.jsx - Payment result
client/src/pages/retailer/PaymentResult.jsx
Business operations
- Admin operations
client/src/pages/admin - Driver operations
client/src/pages/driver - Order handling
server/controllers/orderController.js - Business APIs
server/controllers
Payments
- Payment endpoints
server/routes/payments.js - Payment controller
server/controllers/paymentController.js - Settlement service
server/services/paymentService.js - Gateway selector
server/services/paymentGateway.js - Stripe
- Razorpay
API platform
- HTTP API server
server/server.js - Authentication
server/middleware/auth.js
Persistence and gateways
- MySQL database
server/config/db.js
Other components
- Retailer
- Administrator
- Driver
Connections 26
- Retailer → Client entry: uses
README.md - Administrator → Client entry: uses
README.md - Driver → Client entry: uses
README.md - Client entry → Role-based routes: renders
- Role-based routes → Retailer ordering: routes to
client/src/routes/AppRoutes.jsx - Role-based routes → Retailer payments: routes to
client/src/routes/AppRoutes.jsx - Role-based routes → Payment result: routes to
client/src/routes/AppRoutes.jsx - Role-based routes → Admin operations: routes to
client/src/routes/AppRoutes.jsx - Role-based routes → Driver operations: routes to
client/src/routes/AppRoutes.jsx - Retailer ordering → HTTP API server: submits orders
- Retailer payments → HTTP API server: starts checkout
README.md - HTTP API server → Payment endpoints: mounts
server/server.js - Payment endpoints → Payment controller: dispatches
server/controllers/paymentController.js - Payment controller → Settlement service: settles transaction
server/controllers/paymentController.js - Payment controller → Gateway selector: requests checkout
server/controllers/paymentController.js - Gateway selector → Stripe: selects provider
server/services/paymentGateway.js - Gateway selector → Razorpay: selects provider
server/services/paymentGateway.js - Stripe → HTTP API server: redirects and webhooks
README.md - HTTP API server → Payment controller: handles webhook
README.md - Payment result → HTTP API server: polls status
README.md - Settlement service → MySQL database: updates balances and ledger
server/services/paymentService.js - Order handling → MySQL database: reads and writes orders
server/controllers/orderController.js - Order handling → Settlement service: expires stale checkouts
server/controllers/orderController.js - HTTP API server → Authentication: protects APIs
server/middleware/auth.js - HTTP API server → Business APIs: mounts domain routes
- Business APIs → MySQL database: uses database
server/controllers/orderController.js