How mustafagomaa1/brandos-graduation-project works
Brandos is an e-commerce management platform: shoppers browse product pages, while administrators manage catalog and inventory; product recommendations form a separate AI-assisted branch. The documented recommendation workflow sends a viewed product’s identifier from Spring Boot to FastAPI, computes similar products, then uses MySQL-backed product data to render recommendations in Thymeleaf. The source excerpts show the Python model and endpoint, but not the Spring controllers, services, or repository calls; those internal links are therefore not asserted. The README describes the cross-service workflow, whose exact HTTP shape differs from the sampled endpoint.
Main entry points: BrandosApplication.java Spring Boot App · main.py FastAPI Endpoint · service Recommendation Integration · products.csv Product Dataset
Components 15
Management Core
- Spring Boot App
src/main/java/com/example/brandos/BrandosApplication.java - Web Security
src/main/java/com/example/brandos/security - JPA Data Layer
src/main/java/com/example/brandos/repository
Commerce Features
- Product Management
src/main/java/com/example/brandos/controller/ProductController.java - Customer Accounts
src/main/java/com/example/brandos/controller/CustomerController.java - Product Reviews
src/main/java/com/example/brandos/controller/ReviewController.java - Product Chat
src/main/java/com/example/brandos/controller/ChatController.java
Recommendations
- Recommendation Integration
src/main/java/com/example/brandos/service - FastAPI Endpoint
FastAPIProject/main.py - Similarity Model
FastAPIProject/main.py - Product Dataset
FastAPIProject/products.csv
Web Presentation
- Thymeleaf Views
src/main/resources/templates
Other components
- Shopper
- Administrator
- MySQL
Connections 10
- Shopper → Spring Boot App: browses products
README.md - Administrator → Spring Boot App: manages site
README.md - Spring Boot App → MySQL: persists data
README.md - Spring Boot App → Thymeleaf Views: renders pages
README.md - Spring Boot App → Recommendation Integration: requests suggestions
README.md - Recommendation Integration → FastAPI Endpoint: sends product ID
README.md - FastAPI Endpoint → Similarity Model: calls model
FastAPIProject/main.py - Similarity Model → Product Dataset: loads products
FastAPIProject/main.py - FastAPI Endpoint → Recommendation Integration: returns product IDs
README.md - Spring Boot App → MySQL: fetches recommendations
README.md