How clifmedak-lgtm/global-mart works
GlobalMart is a marketplace storefront with a static browser UI and an Express/Prisma backend. The main customer journey is browsing products, signing in, checking out, and paying through NotchPay; the repository also includes reviews, wishlists, vendor and admin experiences, and bilingual/theme controls. The sampled excerpts show browser API calls, database access, and payment verification, but not every route or page integration, so uncertain links are omitted. Multiple backend responsibilities share server.js because no separate implementation files appear in the tree.
Main entry points: server.js HTTP API · app.js Storefront UI · schema.prisma Marketplace Database · product.html Product Pages
Components 18
Storefront
- Storefront UI
public/app.js - Product Pages
public/product.html - Account Pages
public/account.html - Checkout Page
public/checkout.html - Translations
public/i18n.js - Appearance Controls
public/theme-controls.js
Marketplace Services
- HTTP API
server.js - Product Catalog
server.js - Accounts & Sessions
server.js - Checkout & Orders
server.js - Reviews & Wishlist
server.js - Payment Handling
server.js
Marketplace Operations
- Vendor Portal
public/vendor-dashboard.html - Admin Portal
public/admin.html - Admin Operations
server.js
Persistence
- Marketplace Database
prisma/schema.prisma
Other components
- Shopper
- NotchPay
Connections 22
- Shopper → Storefront UI: uses
- Storefront UI → HTTP API: requests data
public/app.js - Product Pages → Storefront UI: hosts product view
- Account Pages → Storefront UI: hosts account view
- Checkout Page → Storefront UI: hosts checkout
- Storefront UI → Translations: translates UI
- Storefront UI → Appearance Controls: offers controls
- HTTP API → Product Catalog: routes requests
server.js - HTTP API → Accounts & Sessions: routes requests
server.js - HTTP API → Checkout & Orders: routes requests
server.js - HTTP API → Reviews & Wishlist: routes requests
server.js - HTTP API → Payment Handling: routes requests
server.js - HTTP API → Admin Operations: routes requests
server.js - Product Catalog → Marketplace Database: reads products
server.js - Accounts & Sessions → Marketplace Database: reads/writes users
server.js - Checkout & Orders → Marketplace Database: reads/writes orders
server.js - Reviews & Wishlist → Marketplace Database: reads/writes records
server.js - Payment Handling → Marketplace Database: updates payment status
server.js - Payment Handling → NotchPay: verifies transactions
server.js - Admin Operations → Marketplace Database: manages records
server.js - Vendor Portal → HTTP API: uses API
- Admin Portal → Admin Operations: uses admin routes