How esdurgadevi/krrawmaterial works
This is a cotton, waste, process-stock, and spinning-quality management application: browser users work through protected admin screens and backend APIs to maintain masters, record operational transactions, and review reports. The backend is organized around Express route modules, controllers, services, and Sequelize models. The excerpts show the app mounting domain APIs, protected waste-packing and countwise-closing routes, and selected controller-to-service calls. Most page-to-API and unsampled module relationships are not shown, so those links are omitted rather than inferred.
Main entry points: app.js Express API · pages Admin screens · index.js Model registry · transaction-cotton Cotton transactions
Components 16
Admin interface
- Admin screens
frontend(Sep2)/src/pages - Page routing
frontend(Sep2)/src/routes.jsx
Cotton operations
- Master data
backend(Sep2)/controllers/admin1/master - Cotton transactions
backend(Sep2)/controllers/admin1/transaction-cotton - Cotton reports
backend(Sep2)/services/reports
Waste and stock
- Waste transactions
backend(Sep2)/controllers/admin1/transaction-waste - Process stock
backend(Sep2)/controllers/admin1/transaction-process-stock
Quality and platform
- Express API
backend(Sep2)/app.js - Spinning QC
backend(Sep2)/controllers/admin2/transaction-qc - QC reports
backend(Sep2)/services/admin2/reports - Authentication
backend(Sep2)/services/auth/authService.js - Request controllers
backend(Sep2)/controllers - Domain services
backend(Sep2)/services - Model registry
backend(Sep2)/models/index.js - SQL database
backend(Sep2)/config/db.js
Other components
- Admin user
Connections 19
- Admin user → Admin screens: uses screens
- Page routing → Admin screens: routes pages
frontend(Sep2)/src/routes.jsx - Admin screens → Express API: sends requests
- Express API → Master data: mounts APIs
backend(Sep2)/app.js - Express API → Cotton transactions: mounts APIs
backend(Sep2)/app.js - Express API → Waste transactions: mounts APIs
backend(Sep2)/app.js - Express API → Process stock: mounts APIs
backend(Sep2)/app.js - Express API → Spinning QC: mounts APIs
backend(Sep2)/app.js - Express API → Authentication: mounts auth
backend(Sep2)/app.js - Express API → Cotton reports: mounts catalog
backend(Sep2)/app.js - Express API → QC reports: mounts catalog
backend(Sep2)/app.js - Express API → Request controllers: routes requests
backend(Sep2)/app.js - Request controllers → Domain services: delegates work
backend(Sep2)/controllers/admin1/transaction-waste/wastePackingController.js - Authentication → Model registry: queries users
backend(Sep2)/services/auth/authService.js - Domain services → Model registry: uses models
backend(Sep2)/services/admin1/transaction-cotton/inwardLotService.js - Model registry → SQL database: uses connection
backend(Sep2)/models/index.js - Express API → SQL database: initializes
- Cotton transactions → Cotton reports: supports reporting
- Spinning QC → QC reports: supports reporting