How quintuslabs/fashion-cube works
Fashion Cube is a fashion-commerce storefront with a React/Redux client and an Express/MongoDB API. Shoppers browse products and categories, inspect product details, authenticate, manage a cart, and can proceed to PayPal checkout. The graph preserves those documented capabilities and the sampled server’s catalog, identity, cart, and payment responsibilities. Some view containers, Redux actions, and server modules were not excerpted; edges involving them are limited to relationships visible in the source index or explicit documentation.
Main entry points: routes/index.js Catalog Routes · routes/index.js Client Routes · users.js User Routes · app.js Express App
Components 29
Storefront
- Client App
src/App.js - Client Routes
src/routes/index.js - Store Layout
src/layouts/BaseLayout.js - Home View
src/views/Home/Home.js - Category View
src/views/Category/Category.js - Product Detail
src/views/Product/SingleProduct.js - Cart View
src/views/Cart/Cart.js - Login Register
src/components/LoginRegisterModal/LoginForm.js - Client Auth
src/modules/Auth/index.js - API Client
src/axios/API.js - Product Actions
src/redux/actions/productAction.js
Catalog
- Catalog Routes
server/ecommerce/routes/index.js
Identity and Commerce
- Express App
server/ecommerce/app.js - User Routes
server/ecommerce/routes/users.js - JWT Guard
server/ecommerce/modules/ensureAuthenticated.js - Cart Logic
server/ecommerce/modules/Cart.js - JWT Config
server/ecommerce/configs/jwt-config.js - PayPal Config
server/ecommerce/configs/paypal-config.js
Persistence
- MongoDB
- Product Model
server/ecommerce/models/Product.js - Variant Model
server/ecommerce/models/Variant.js - Category Model
server/ecommerce/models/Category.js - Department Model
server/ecommerce/models/Department.js - Cart Model
server/ecommerce/models/Cart.js - User Model
server/ecommerce/models/User.js - Mongo Config
server/ecommerce/configs/mongo-config.js
Other components
- Shopper
- Commerce API
- PayPal
Connections 36
- Shopper → Client App: uses
src/App.js - Client App → Client Routes: renders
src/App.js - Client Routes → Store Layout: wraps views
- Client Routes → Home View: routes to
- Client Routes → Category View: routes to
- Client Routes → Product Detail: routes to
- Client Routes → Cart View: guards route
- Store Layout → Login Register: opens modal
- Login Register → Client Auth: uses auth
- Product Actions → API Client: requests data
src/redux/actions/productAction.js - API Client → Client Auth: reads token
src/axios/API.js - API Client → Commerce API: sends requests
src/axios/API.js - Express App → Mongo Config: connects with
server/ecommerce/app.js - Express App → MongoDB: connects
server/ecommerce/app.js - Express App → Catalog Routes: mounts
server/ecommerce/app.js - Express App → User Routes: mounts
server/ecommerce/app.js - Catalog Routes → Product Model: queries
server/ecommerce/routes/index.js - Catalog Routes → Variant Model: queries
server/ecommerce/routes/index.js - Catalog Routes → Category Model: queries
server/ecommerce/routes/index.js - Catalog Routes → Department Model: queries
server/ecommerce/routes/index.js - Catalog Routes → Cart Model: loads cart
server/ecommerce/routes/index.js - Catalog Routes → Cart Logic: builds items
server/ecommerce/routes/index.js - Catalog Routes → JWT Guard: guards routes
server/ecommerce/routes/index.js - Catalog Routes → PayPal Config: configures
server/ecommerce/routes/index.js - Catalog Routes → PayPal: creates payment
server/ecommerce/routes/index.js - User Routes → User Model: uses users
server/ecommerce/routes/users.js - User Routes → Cart Model: uses carts
server/ecommerce/routes/users.js - User Routes → Cart Logic: uses cart logic
server/ecommerce/routes/users.js - User Routes → JWT Guard: guards routes
server/ecommerce/routes/users.js - JWT Guard → JWT Config: verifies with
server/ecommerce/modules/ensureAuthenticated.js - Product Model → MongoDB: persists in
- Variant Model → MongoDB: persists in
- Category Model → MongoDB: persists in
- Department Model → MongoDB: persists in
- Cart Model → MongoDB: persists in
- User Model → MongoDB: persists in