How ceuw/groza works
Groza is a Next.js/PostgreSQL e-commerce platform. Shoppers discover products, build a persistent cart, submit checkout, and view orders; account and admin workflows support that journey with authentication, catalog/inventory, fulfillment, reviews, and marketing tools. The graph includes key business-logic and persistence layers. README documents several capabilities whose implementation files were not sampled; those are represented at their supported route/action paths, with only evidenced relationships shown. Source excerpts and index references limit certainty for unsampled modules.
Main entry points: db.js PostgreSQL · admin.js Admin Mutations · auth.js Authentication Actions · cart.js Cart Services
Components 25
Storefront
- Catalog & Discovery
app/(store)/shop/page.js - Product Detail
app/(store)/product/[slug]/page.js - Search
app/api/search/route.js
Commerce Operations
- Shopping Cart
app/(store)/cart/page.js - Checkout
app/(store)/checkout/page.js - Order Tracking
app/(store)/order/[orderNumber]/page.js - Checkout Action
app/actions/checkout.js
Accounts & Engagement
- Customer Accounts
app/(store)/account - Authentication Actions
app/actions/auth.js - Customer Reviews
app/actions/reviews.js
Store Administration
- Admin Workspace
app/admin - Admin Mutations
app/actions/admin.js - Newsletter
app/actions/newsletter.js
Business Logic & Data
- Product Services
lib/products.js - Cart Services
lib/cart.js - Checkout Services
lib/checkout.js - Order Services
lib/orders.js - Pricing & Discounts
lib/pricing.js - Identity Services
lib/auth.js - Admin Services
lib/admin.js - Store Settings
lib/settings.js - PostgreSQL
lib/db.js - Email Delivery
lib/mailer.js
Other components
- Shopper
- Email Service
Connections 39
- Shopper → Catalog & Discovery: browses
- Shopper → Product Detail: views
- Shopper → Search: searches
- Catalog & Discovery → Product Services: loads catalog
app/(store)/shop/page.js - Product Detail → Product Services: loads details
app/(store)/product/[slug]/page.js - Search → Product Services: queries products
app/api/search/route.js - Shopper → Shopping Cart: manages cart
- Shopping Cart → Cart Services: reads cart
app/(store)/cart/page.js - Cart Services → Pricing & Discounts: prices items
lib/cart.js - Shopper → Checkout: checks out
- Checkout → Checkout Action: submits checkout
- Checkout Action → Checkout Services: processes checkout
app/actions/checkout.js - Checkout Services → Order Services: creates order
- Order Services → PostgreSQL: reads and writes
lib/orders.js - Shopper → Customer Accounts: manages account
- Customer Accounts → Authentication Actions: submits credentials
- Authentication Actions → Identity Services: authenticates
app/actions/auth.js - Authentication Actions → Cart Services: merges guest cart
app/actions/auth.js - Authentication Actions → Email Delivery: sends welcome mail
app/actions/auth.js - Email Delivery → Email Service: delivers email
- Shopper → Customer Reviews: submits review
- Customer Reviews → Identity Services: checks user
app/actions/reviews.js - Customer Reviews → PostgreSQL: stores pending review
app/actions/reviews.js - Shopper → Order Tracking: tracks order
- Admin Workspace → Admin Mutations: manages store
app/admin/discounts/page.js - Admin Mutations → Admin Services: uses admin queries
- Admin Mutations → Order Services: updates orders
app/actions/admin.js - Admin Mutations → PostgreSQL: mutates records
app/actions/admin.js - Admin Mutations → Identity Services: checks current user
app/actions/admin.js - Admin Workspace → Admin Services: loads dashboard data
app/admin/page.js - Admin Services → PostgreSQL: queries admin data
lib/admin.js - Newsletter → PostgreSQL: stores subscribers
- Product Services → PostgreSQL: queries catalog
lib/products.js - Cart Services → PostgreSQL: reads and writes
lib/cart.js - Checkout Services → PostgreSQL: uses transaction data
- Identity Services → PostgreSQL: reads sessions
lib/auth.js - Store Settings → PostgreSQL: loads settings
lib/settings.js - Shopping Cart → Store Settings: loads store settings
app/(store)/cart/page.js - Product Detail → Store Settings: loads store settings
app/(store)/product/[slug]/page.js