How swastiksuman/nozirev works
Nozirev is a storefront backed by a product-catalog service and a separate cart service. The documented customer path is browsing category listings and managing a cart; the sampled frontend connects product retrieval to the catalog API, while its cart actions update Redux state locally. The cart service separately exposes CRUD endpoints and caches cart records. The README documents the services’ capabilities, but no sampled evidence shows the UI calling the cart API, so that connection is not drawn.
Main entry points: App.js Application Router · ProductListing.js Product Listing · CartService.java Cart Operations · store.js Redux Store
Components 19
Storefront UI
- Application Router
nozirev-ui/src/App.js - Navigation
nozirev-ui/src/components/Navigation.js - Home Page
nozirev-ui/src/pages/HomePage.js - Product Listing
nozirev-ui/src/pages/ProductListing.js - Cart Page
nozirev-ui/src/pages/CartPage.js - Product Actions
nozirev-ui/src/redux/actions/productActions.js - Product API Client
nozirev-ui/src/services/productService.js
Product Catalog
- Catalog API
nozirev-soe/src/main/java/com/nozirev_service/nozirev_soe/controller/ProductController.java - Catalog Data
nozirev-soe/src/main/resources/products.json
Cart Service
- Cart API
nozirev-cxp-cart/src/main/java/com/nozirev_service/nozirev_cxp_cart/controller/CartController.java - Cart Operations
nozirev-cxp-cart/src/main/java/com/nozirev_service/nozirev_cxp_cart/service/CartService.java - Cart Data Model
nozirev-cxp-cart/src/main/java/com/nozirev_service/nozirev_cxp_cart/model/Cart.java - Caffeine Cache
nozirev-cxp-cart/src/main/java/com/nozirev_service/nozirev_cxp_cart/config/CacheConfig.java
Cart State
- Redux Store
nozirev-ui/src/redux/store.js - Product Reducer
nozirev-ui/src/redux/reducers/productReducer.js - Cart Actions
nozirev-ui/src/redux/actions/cartActions.js - Cart Reducer
nozirev-ui/src/redux/reducers/cartReducer.js
Other components
- Customer
- Cart API Client
Connections 19
- Customer → Application Router: uses
README.md - Application Router → Redux Store: provides state
nozirev-ui/src/App.js - Application Router → Navigation: renders
nozirev-ui/src/App.js - Application Router → Home Page: routes to
nozirev-ui/src/App.js - Application Router → Product Listing: routes to
nozirev-ui/src/App.js - Application Router → Cart Page: routes to
nozirev-ui/src/App.js - Product Listing → Product Actions: dispatches
nozirev-ui/src/pages/ProductListing.js - Product Actions → Product API Client: fetches through
nozirev-ui/src/redux/actions/productActions.js - Product API Client → Catalog API: requests products
nozirev-ui/src/services/productService.js - Customer → Catalog API: requests catalog
README.md - Redux Store → Product Reducer: combines
nozirev-ui/src/redux/store.js - Redux Store → Cart Reducer: combines
nozirev-ui/src/redux/store.js - Product Listing → Cart Actions: dispatches
nozirev-ui/src/pages/ProductListing.js - Cart Page → Cart Actions: dispatches
nozirev-ui/src/pages/CartPage.js - Cart Actions → Cart Reducer: defines actions
nozirev-ui/src/redux/actions/cartActions.js - Cart API Client → Cart API: calls endpoints
README.md - Cart API → Cart Operations: delegates
nozirev-cxp-cart/src/main/java/com/nozirev_service/nozirev_cxp_cart/controller/CartController.java - Cart Operations → Cart Data Model: updates
nozirev-cxp-cart/src/main/java/com/nozirev_service/nozirev_cxp_cart/service/CartService.java - Cart Operations → Caffeine Cache: uses annotations
README.md