How reddyakhil23455-droid/retailflow-billing-system works
RetailFlow is a web-based retail billing and inventory application. Cashiers and managers use browser pages for authentication, product and inventory management, dashboard access, and billing. Product maintenance follows a documented REST/controller-to-service-to-repository path; the sampled billing UI loads products, manages a cart, and calculates totals, but no bill-processing backend appears in the supplied tree. The README documents MySQL integration and the layered backend. Billing and dashboard details are limited to the supplied excerpts and README.
Main entry points: AuthController.java Authentication API · ProductController.java Product API · MiniSupermarketBillingApplication.java Spring Boot application · login.html Login and registration
Components 19
Web interface
- Login and registration
src/main/resources/static/login.html - Auth interactions
src/main/resources/static/js/login.js - Registration interactions
src/main/resources/static/js/register.js - Dashboard
src/main/resources/static/js/dashboard.js - Product management
src/main/resources/static/js/products.js - Billing and cart
src/main/resources/static/js/billing.js
REST controllers
- Authentication API
src/main/java/com/supermarket/billing/controller/AuthController.java - Product API
src/main/java/com/supermarket/billing/controller/ProductController.java - Database test API
src/main/java/com/supermarket/billing/controller/TestController.java - Spring Boot application
src/main/java/com/supermarket/billing/MiniSupermarketBillingApplication.java
Services and models
- Authentication logic
src/main/java/com/supermarket/billing/service/AuthService.java - Product rules
src/main/java/com/supermarket/billing/service/ProductService.java - User model
src/main/java/com/supermarket/billing/model/User.java - Product model
src/main/java/com/supermarket/billing/model/Product.java
Persistence
- Account repository
src/main/java/com/supermarket/billing/repository/AuthRepository.java - Product repository
src/main/java/com/supermarket/billing/repository/ProductRepository.java - Connection check
src/main/java/com/supermarket/billing/repository/DatabaseTestRepository.java - MySQL database
Other components
- Retail user
Connections 19
- Retail user → Login and registration: uses
README.md - Retail user → Dashboard: uses
README.md - Retail user → Product management: manages products
README.md - Retail user → Billing and cart: creates bills
README.md - Login and registration → Auth interactions: loads
- Auth interactions → Authentication API: calls auth API
- Registration interactions → Authentication API: calls auth API
- Product management → Product API: fetches products
src/main/resources/static/js/products.js - Billing and cart → Product API: loads products
src/main/resources/static/js/billing.js - Authentication API → Authentication logic: delegates to
src/main/java/com/supermarket/billing/controller/AuthController.java - Product API → Product rules: delegates to
src/main/java/com/supermarket/billing/controller/ProductController.java - Database test API → Connection check: checks connection
src/main/java/com/supermarket/billing/controller/TestController.java - Authentication logic → Account repository: queries and registers
src/main/java/com/supermarket/billing/service/AuthService.java - Product rules → Product repository: reads and mutates
src/main/java/com/supermarket/billing/service/ProductService.java - Account repository → MySQL database: SQL access
README.md - Product repository → MySQL database: SQL access
README.md - Connection check → MySQL database: tests connection
src/main/java/com/supermarket/billing/repository/DatabaseTestRepository.java - Spring Boot application → Authentication API: hosts API
- Spring Boot application → Product API: hosts API