How vtjvlad/abcwear works
ABC Wear is an e-commerce application with a product catalog, product details and recommendations, authentication and profile management, carts, wishlists, and image uploads. The main workflow is a shopper using the public storefront to reach Express routes, which dispatch API handlers that query MongoDB-backed models; authenticated routes first pass through JWT middleware. The tree also contains Nike-oriented parsing and transformation scripts and older server implementations. Those branches are represented without assuming unsampled wiring; the README provides no further architecture detail.
Main entry points: app.js Express routes · internalApi.js API handlers · catalog.js Catalog UI · prodPage.js Product page
Components 26
Storefront
- Catalog UI
public/js/catalog.js - Product page
public/prodPage.js - Recommendations UI
public/recommendations.js - Authentication UI
public/js/auth.js - Cart UI
public/js/cart.js - Wishlist UI
public/js/wishlist.js
Web server
- Express routes
app.js - API handlers
utils/internalApi.js - JWT authentication
middleware/auth.js - Request validation
middleware/validators.js - Error handling
middleware/errorHandler.js - Page routing
utils/router.js
Commerce data
- Product records
models/Product.js - User records
models/User.js - Cart records
models/Cart.js - Wishlist records
models/Wishlist.js
Product ingestion
- Nike parsers
pars/a1s1nikedata.js - Image extraction
pars/a1s4getnikeimgs.js - Image transforms
pars/a2s6nikeTransformImg.js - Product translation
pars/translate.js
Legacy server
- Legacy product API
legacy/api.js - Legacy server
legacy/app12.js - Legacy API variant
legacy/api2.js - Example server
exampleSRV.js - Example model
model.js
Other components
- Shopper
Connections 24
- Shopper → Catalog UI: browses
- Shopper → Product page: views
- Shopper → Authentication UI: authenticates
- Shopper → Cart UI: manages cart
- Shopper → Wishlist UI: manages wishlist
- Express routes → API handlers: dispatches
app.js - Express routes → Page routing: routes pages
app.js - Express routes → JWT authentication: guards routes
app.js - Express routes → Request validation: validates requests
app.js - Express routes → Error handling: handles errors
app.js - JWT authentication → User records: loads user
middleware/auth.js - API handlers → Product records: queries products
utils/internalApi.js - API handlers → User records: manages users
utils/internalApi.js - API handlers → Cart records: manages carts
utils/internalApi.js - API handlers → Wishlist records: manages wishlists
utils/internalApi.js - Cart records → Product records: calculates totals
models/Cart.js - Legacy server → Legacy product API: routes to
legacy/app12.js - Example server → Example model: uses model
exampleSRV.js - Catalog UI → Express routes: requests catalog data
- Product page → Express routes: requests product data
- Recommendations UI → Express routes: requests recommendations
- Authentication UI → Express routes: submits credentials
- Cart UI → Express routes: requests cart operations
- Wishlist UI → Express routes: requests wishlist operations