How dissouri001/full-stack-task-ecommercemanager-with-devops-pipeline works
This is a full-stack commerce application: shoppers browse products, register or sign in, add items to a cart, and proceed through order and Stripe checkout; administrators manage products. The React client calls an Express API backed by Prisma and PostgreSQL, with JWT authentication guarding user and admin actions. The README also documents Docker-based local operation and Stripe test payments. The graph preserves those major capabilities; backend registration and route wiring are cited where shown, while some client-to-API and payment relationships are documented or left unverified because their calling excerpts are unavailable.
Main entry points: App.jsx App routing · axios.js HTTP client · AuthContext.jsx Auth state · db.js Prisma client
Components 27
Shopper client
- App routing
client/src/App.jsx - Navigation
client/src/components/Navbar.jsx - Product browsing
client/src/pages/Home.jsx - Product details
client/src/pages/ProductDetails.jsx - Product card
client/src/components/ProductCard.jsx - Cart state
client/src/context/CartContext.jsx - Cart checkout
client/src/pages/Cart.jsx - Checkout success
client/src/pages/CheckoutSuccess.jsx - Sign in
client/src/pages/Login.jsx - Registration
client/src/pages/Register.jsx - Auth state
client/src/context/AuthContext.jsx - Admin dashboard
client/src/pages/AdminDashboard.jsx - HTTP client
client/src/api/axios.js
Commerce API
- Product routes
server/src/routes/productRoutes.js - Product management
server/src/controllers/productController.js - Auth routes
server/src/routes/authRoutes.js - Auth handling
server/src/controllers/authController.js - Order routes
server/src/routes/orderRoutes.js - Order processing
server/src/controllers/orderController.js - Payment routes
server/src/routes/paymentRoutes.js - Payment handling
server/src/controllers/paymentController.js
Persistence and payments
- PostgreSQL
server/prisma/schema.prisma - Prisma client
server/src/config/db.js - Stripe
Identity and access
- JWT access
server/src/middleware/auth.js
Other components
- Shopper
- Administrator
Connections 40
- Shopper → App routing: uses
client/src/App.jsx - Administrator → App routing: uses
client/src/App.jsx - App routing → Navigation: renders
client/src/App.jsx - App routing → Product browsing: routes to
client/src/App.jsx - App routing → Product details: routes to
client/src/App.jsx - App routing → Cart checkout: routes to
client/src/App.jsx - App routing → Sign in: routes to
client/src/App.jsx - App routing → Registration: routes to
client/src/App.jsx - App routing → Admin dashboard: routes to
client/src/App.jsx - App routing → Checkout success: routes to
client/src/App.jsx - Product browsing → Product card: renders
client/src/pages/Home.jsx - Product card → Cart state: adds item
client/src/components/ProductCard.jsx - Product details → Cart state: adds item
client/src/pages/ProductDetails.jsx - Cart checkout → Cart state: reads cart
client/src/pages/Cart.jsx - Sign in → Auth state: signs in
client/src/pages/Login.jsx - Registration → Auth state: registers
client/src/pages/Register.jsx - Navigation → Auth state: uses identity
client/src/components/Navbar.jsx - Navigation → Cart state: reads cart
client/src/components/Navbar.jsx - Admin dashboard → HTTP client: calls API
client/src/pages/AdminDashboard.jsx - Product browsing → HTTP client: calls API
client/src/pages/Home.jsx - Product details → HTTP client: calls API
client/src/pages/ProductDetails.jsx - Cart checkout → HTTP client: calls API
client/src/pages/Cart.jsx - Auth state → HTTP client: sends auth requests
client/src/context/AuthContext.jsx - HTTP client → Product routes: HTTP requests
- HTTP client → Auth routes: HTTP requests
- HTTP client → Order routes: HTTP requests
- HTTP client → Payment routes: HTTP requests
- Product routes → Product management: dispatches
server/src/routes/productRoutes.js - Auth routes → Auth handling: dispatches
server/src/routes/authRoutes.js - Order routes → Order processing: dispatches
server/src/routes/orderRoutes.js - Payment routes → Payment handling: dispatches
server/src/routes/paymentRoutes.js - Product management → Prisma client: queries
server/src/controllers/productController.js - Auth handling → Prisma client: queries
server/src/controllers/authController.js - Order processing → Prisma client: queries and updates
server/src/controllers/orderController.js - Prisma client → PostgreSQL: persists data
- Payment handling → Stripe: creates checkout
- Auth routes → JWT access: guards routes
- Order routes → JWT access: guards routes
server/src/routes/orderRoutes.js - Payment routes → JWT access: guards routes
server/src/routes/paymentRoutes.js - Product routes → JWT access: guards admin actions
server/src/routes/productRoutes.js