How leventewolf/bookshop works
Bookshop is a React/Redux storefront backed by an Express API and Oracle. The main shopper flow is browsing catalog and product details, adding products to basket or wishlist, then checking out; account registration, profile/purchase history, and administrator storage/product management are separate capabilities. Edges reflect calls visible in excerpts or routes explicitly shown there; broader catalog and account subsystems are retained where documented by the source index, but their unsampled internals are not inferred.
Main entry points: App.js Route shell · router.js API routes · ProductPage.jsx Product details · main_dao.js Catalog and commerce DAO
Components 21
Storefront
- Route shell
client/src/App.js - Catalog pages
client/src/components/products - Home features
client/src/components/home - Product details
client/src/components/ProductPage.jsx - Product views
client/src/components/templates/TemplateProducts.jsx - Redux store
client/src/redux/store.js
Shopping
- Basket
client/src/components/Basket.jsx - Wishlist
client/src/components/Wishlist.jsx - Basket state actions
client/src/redux/actions/basketActions.js - Wishlist state actions
client/src/redux/actions/wishlistActions.js
Accounts
- Account screens
client/src/components/user - Profile and purchases
client/src/components/user/Profile.jsx - User API client
client/src/api/userAPI.js - Storage management
client/src/components/storages/Storages.tsx
API service
- HTTP client
client/src/http-common.js - Express app
server/app.js - API routes
server/src/routes/router.js
Oracle data
- Catalog and commerce DAO
server/src/dao/main_dao.js - Oracle database
- Oracle connection config
server/config/db.js
Other components
- Shopper
Connections 23
- Shopper → Route shell: opens
client/src/App.js - Route shell → Catalog pages: routes to
client/src/App.js - Route shell → Home features: routes to
client/src/App.js - Route shell → Basket: routes to
client/src/App.js - Route shell → Wishlist: routes to
client/src/App.js - Route shell → Product details: routes to
client/src/App.js - Route shell → Profile and purchases: routes to
client/src/App.js - Route shell → Storage management: routes to
client/src/App.js - Catalog pages → Product views: uses
client/src/components/products/Books.tsx - Product details → Product views: renders
client/src/components/ProductPage.jsx - Product details → API routes: fetches product
client/src/components/ProductPage.jsx - Product views → Basket state actions: dispatches
client/src/components/templates/TemplateProducts.jsx - Basket → API routes: submits checkout
- Wishlist → API routes: loads wishlist
- Account screens → User API client: uses
client/src/components/user/Register.jsx - User API client → HTTP client: sends requests
client/src/api/userAPI.js - Profile and purchases → API routes: loads profile
- Storage management → API routes: requests storage data
- Route shell → Redux store: uses state
client/src/index.js - Express app → API routes: mounts
server/app.js - API routes → Catalog and commerce DAO: dispatches requests
server/src/routes/router.js - Catalog and commerce DAO → Oracle database: queries
server/src/dao/main_dao.js - Catalog and commerce DAO → Oracle connection config: loads config
server/src/dao/main_dao.js