How manoj9329/boutique-full-stack-project works
This repository implements a boutique storefront with a React client and Spring backend. The user workflow is browse products, manage a local cart, submit customer and order data at checkout, and view orders; registration and login provide JWT-based authentication, while admin screens manage products and categories. Backend services and repositories support the domain API. The graph preserves the documented frontend routes and backend domains, but several backend links are dashed because their controller implementations were not excerpted.
Main entry points: api.js HTTP client · App.jsx App routes · Checkout.jsx Checkout · CartContext.jsx Cart state
Components 34
Storefront client
- App routes
boutique-frontend/src/App.jsx - Cart state
boutique-frontend/src/context/CartContext.jsx - Product browsing
boutique-frontend/src/pages/Products.jsx - Cart view
boutique-frontend/src/pages/Cart.jsx - Checkout
boutique-frontend/src/pages/Checkout.jsx - Order history
boutique-frontend/src/pages/Orders.jsx - HTTP client
boutique-frontend/src/services/api.js
Authentication
- Auth state
boutique-frontend/src/context/AuthContext.jsx - Login and register
boutique-frontend/src/pages/Register.jsx - Auth endpoints
boutique-backend/src/main/java/com/boutique/controller/AuthController.java - JWT utility
boutique-backend/src/main/java/com/boutique/config/JwtUtil.java - User lookup
boutique-backend/src/main/java/com/boutique/config/CustomUserDetailsService.java - JWT security
boutique-backend/src/main/java/com/boutique/config/JwtAuthFilter.java
Commerce API
- Order endpoints
boutique-backend/src/main/java/com/boutique/controller/OrderController.java - Order item endpoints
boutique-backend/src/main/java/com/boutique/controller/OrderItemController.java - Payment endpoints
boutique-backend/src/main/java/com/boutique/controller/PaymentController.java - Customer endpoints
boutique-backend/src/main/java/com/boutique/controller/CustomerController.java - Order service
boutique-backend/src/main/java/com/boutique/service/OrderService.java - Order item service
boutique-backend/src/main/java/com/boutique/service/OrderItemService.java - Payment service
boutique-backend/src/main/java/com/boutique/service/PaymentService.java - Customer service
boutique-backend/src/main/java/com/boutique/service/CustomerService.java
Catalog management
- Admin screens
boutique-frontend/src/pages/admin - Product endpoints
boutique-backend/src/main/java/com/boutique/controller/ProductController.java - Category endpoints
boutique-backend/src/main/java/com/boutique/controller/CategoryController.java - Category service
boutique-backend/src/main/java/com/boutique/service/CategoryService.java - Product service
boutique-backend/src/main/java/com/boutique/service/ProductService.java
Domain persistence
- User records
boutique-backend/src/main/java/com/boutique/entity/User.java - Catalog records
boutique-backend/src/main/java/com/boutique/entity/Category.java - Product records
boutique-backend/src/main/java/com/boutique/entity/Product.java - Order records
boutique-backend/src/main/java/com/boutique/entity/Order.java - Order item records
boutique-backend/src/main/java/com/boutique/entity/OrderItem.java - Payment records
boutique-backend/src/main/java/com/boutique/entity/Payment.java - Customer records
boutique-backend/src/main/java/com/boutique/entity/Customer.java
Other components
- Shopper
Connections 42
- Shopper → App routes: uses
- App routes → Auth state: provides state
boutique-frontend/src/App.jsx - App routes → Cart state: provides state
boutique-frontend/src/App.jsx - App routes → Login and register: routes to
boutique-frontend/src/App.jsx - App routes → Product browsing: routes to
boutique-frontend/src/App.jsx - App routes → Cart view: routes to
boutique-frontend/src/App.jsx - App routes → Checkout: routes to
boutique-frontend/src/App.jsx - App routes → Order history: routes to
boutique-frontend/src/App.jsx - App routes → Admin screens: routes to
boutique-frontend/src/App.jsx - Login and register → HTTP client: calls
boutique-frontend/src/pages/Register.jsx - Login and register → Auth state: updates
boutique-frontend/src/pages/Register.jsx - Product browsing → HTTP client: calls
boutique-frontend/src/pages/Products.jsx - Product browsing → Cart state: adds products
boutique-frontend/src/pages/Products.jsx - Cart view → Cart state: reads and updates
boutique-frontend/src/pages/Cart.jsx - Checkout → Cart state: reads and clears
boutique-frontend/src/pages/Checkout.jsx - Checkout → Auth state: reads user
boutique-frontend/src/pages/Checkout.jsx - Checkout → HTTP client: submits checkout
boutique-frontend/src/pages/Checkout.jsx - Order history → HTTP client: calls
boutique-frontend/src/pages/Orders.jsx - Admin screens → HTTP client: calls
boutique-frontend/src/pages/admin/AdminProducts.jsx - HTTP client → Auth endpoints: sends HTTP requests
- HTTP client → Product endpoints: sends HTTP requests
- HTTP client → Category endpoints: sends HTTP requests
- HTTP client → Customer endpoints: sends HTTP requests
- HTTP client → Order endpoints: sends HTTP requests
- HTTP client → Order item endpoints: sends HTTP requests
- HTTP client → Payment endpoints: sends HTTP requests
- Auth endpoints → JWT utility: generates tokens
boutique-backend/src/main/java/com/boutique/controller/AuthController.java - Auth endpoints → User records: reads and saves
boutique-backend/src/main/java/com/boutique/controller/AuthController.java - User lookup → User records: loads account
boutique-backend/src/main/java/com/boutique/config/CustomUserDetailsService.java - JWT security → JWT utility: validates tokens
- Product endpoints → Product service: delegates
- Category endpoints → Category service: delegates
boutique-backend/src/main/java/com/boutique/controller/CategoryController.java - Category service → Catalog records: reads and writes
boutique-backend/src/main/java/com/boutique/service/CategoryService.java - Order endpoints → Order service: delegates
- Order item endpoints → Order item service: delegates
boutique-backend/src/main/java/com/boutique/controller/OrderItemController.java - Payment endpoints → Payment service: delegates
- Customer endpoints → Customer service: delegates
boutique-backend/src/main/java/com/boutique/controller/CustomerController.java - Order service → Order records: reads and writes
boutique-backend/src/main/java/com/boutique/service/OrderService.java - Order item service → Order item records: reads and writes
boutique-backend/src/main/java/com/boutique/service/OrderItemService.java - Payment service → Payment records: reads and writes
boutique-backend/src/main/java/com/boutique/service/PaymentService.java - Customer service → Customer records: reads and writes
boutique-backend/src/main/java/com/boutique/service/CustomerService.java - Product service → Product records: reads and writes
boutique-backend/src/main/java/com/boutique/service/ProductService.java