How clifmedak-lgtm/pethaven works
MyPetshoppy is a pet-and-supplies marketplace. Customers browse and search listings, view product details and recommendations, manage a cart, apply coupons, and proceed through checkout and payment; they can also use accounts, wishlists, and reviews. Vendors and administrators have separate management surfaces. The sampled code shows a single Express server implementing these capabilities and using Prisma-backed persistence. The README is empty, and excerpts are partial, so links for unsampled workflows and page wiring are omitted rather than inferred.
Main entry points: app.js Storefront client · schema.prisma Marketplace database · server.js Payment handling · admin-tools.mjs Admin CLI
Components 16
Customer storefront
- Storefront client
public/app.js - Product details
public/app.js - Cart and checkout
public/app.js - Wishlist
public/app.js
Marketplace services
- Product catalog
server.js - Recommendations
server.js - Coupon validation
server.js - Payment handling
server.js - Product reviews
server.js
Account and management
- Authentication
server.js - Vendor management
server.js - Admin management
server.js - Admin CLI
admin-tools.mjs
Persistence and payments
- Marketplace database
prisma/schema.prisma - NotchPay
Other components
- Customer
Connections 18
- Customer → Storefront client: uses
- Storefront client → Product catalog: requests listings
public/app.js - Storefront client → Recommendations: requests suggestions
public/app.js - Storefront client → Product details: renders listing
public/app.js - Storefront client → Cart and checkout: renders checkout
public/app.js - Cart and checkout → Coupon validation: validates coupon
public/app.js - Cart and checkout → Payment handling: checks payment
public/app.js - Storefront client → Wishlist: loads wishlist
public/app.js - Storefront client → Product reviews: loads reviews
public/app.js - Product catalog → Marketplace database: queries products
server.js - Recommendations → Marketplace database: queries products
server.js - Product reviews → Marketplace database: reads and writes
server.js - Payment handling → Marketplace database: updates orders
server.js - Payment handling → NotchPay: verifies transactions
server.js - Authentication → Marketplace database: reads and writes
server.js - Vendor management → Marketplace database: queries listings
server.js - Admin management → Marketplace database: queries marketplace
server.js - Admin CLI → Marketplace database: manages records
admin-tools.mjs