How dissouri001/shop-ecommerce-devops-project- works
SHOP is a technology e-commerce storefront with a React client and an Express API backed by MySQL. The shopper workflow loads and filters products, displays them, and adds selections to a browser-local cart; the UI explicitly describes that cart as a demonstration. The API also supports registration, login, admin product creation, authenticated checkout, and order history. Source excerpts show the route, database, and component relationships; the frontend does not connect its local cart to checkout in the sampled code.
Main entry points: App.js Storefront app · server.js HTTP API server · db.js MySQL connection pool · products.js Product routes
Components 13
Storefront
- Storefront app
shop/frontend/src/App.js - API client
shop/frontend/src/api.js - Product list
shop/frontend/src/components/ProductList.js - Product card
shop/frontend/src/components/ProductCard.js - Local cart
shop/frontend/src/components/Cart.js
Commerce API
- HTTP API server
shop/backend/server.js - Product routes
shop/backend/routes/products.js - Checkout and orders
shop/backend/routes/cart.js
Identity and access
- Account routes
shop/backend/routes/auth.js - Token authorization
shop/backend/middleware/auth.js
Persistence
- MySQL connection pool
shop/backend/config/db.js - MySQL database
shop/database/init.sql
Other components
- Shopper
Connections 17
- Shopper → Storefront app: uses storefront
shop/frontend/src/App.js - Storefront app → API client: fetches products
shop/frontend/src/App.js - Storefront app → Product list: renders products
shop/frontend/src/App.js - Storefront app → Local cart: renders cart
shop/frontend/src/App.js - Product list → Product card: renders cards
shop/frontend/src/components/ProductList.js - Storefront app → Local cart: updates selections
shop/frontend/src/App.js - API client → HTTP API server: requests API
shop/frontend/src/api.js - HTTP API server → Account routes: mounts routes
shop/backend/server.js - HTTP API server → Product routes: mounts routes
shop/backend/server.js - HTTP API server → Checkout and orders: mounts routes
shop/backend/server.js - HTTP API server → MySQL connection pool: checks database
shop/backend/server.js - Account routes → MySQL connection pool: reads and writes users
shop/backend/routes/auth.js - Product routes → MySQL connection pool: reads and writes products
shop/backend/routes/products.js - Checkout and orders → Token authorization: authenticates requests
shop/backend/routes/cart.js - Product routes → Token authorization: guards admin creation
shop/backend/routes/products.js - Checkout and orders → MySQL connection pool: records orders
shop/backend/routes/cart.js - MySQL connection pool → MySQL database: queries database