How mcrs101/oodev works
Godunk appears to be a small retail/POS suite: a customer-facing storefront, a manager-facing inventory and purchasing app, a supplier/customer operations app, and an Express/Prisma API. The likely workflow spans product discovery, cart checkout, order and stock updates, and staff inventory operations. The README is unreadable, so capabilities are inferred from the source tree and sampled code; unsampled screens are included, but links to backend behavior are omitted unless the source shows them.
Main entry points: auth.routes.js API routes · app/app.ts Storefront UI · app/app.ts Manager UI · home.ts Product browsing
Components 25
Customer storefront
- Storefront UI
godunk-sell/src/app/app.ts - Login
godunk-sell/src/app/login/login.ts - Registration
godunk-sell/src/app/register/register.ts - Product browsing
godunk-sell/src/app/home/home.ts - Product data
godunk-sell/src/app/services/product.ts - Product search
godunk-sell/src/app/services/search.service.ts - Cart and checkout
godunk-sell/src/app/services/cart.service.ts - About page
godunk-sell/src/app/about/about.ts
Store operations
- Operations UI
godunk-fine/src/app/app.ts - Operations home
godunk-fine/src/app/home/home.ts - Customer operations
godunk-fine/src/app/customerpage/customerpage.ts - Supplier operations
godunk-fine/src/app/suppli/suppli.ts - Manager UI
godunk-manager/src/app/app.ts - Dashboard
godunk-manager/src/app/dashboard/dashboard.ts - Inventory management
godunk-manager/src/app/inventory/inventory.ts - Purchase orders
godunk-manager/src/app/purchase-order/purchase-order.ts - Manager records
godunk-manager/src/app/manager/manager.ts
Backend API
- HTTP server
backend/server.js - API routes
backend/src/routes/auth.routes.js - Authentication
backend/src/controller/auth.controller.js - Product operations
backend/src/controller/products.controller.js - Orders and stock
backend/src/controller/order.controller.js - Profile authorization
backend/src/middleware/auth.middleware.js
Data persistence
- Application database
backend/prisma/schema.prisma
Other components
- Shopper
Connections 24
- Shopper → Storefront UI: uses
- Storefront UI → Login: routes to
- Storefront UI → Registration: routes to
- Storefront UI → Product browsing: routes to
- Storefront UI → About page: routes to
- Product browsing → Product data: uses
godunk-sell/src/app/home/home.ts - Product browsing → Product search: uses
godunk-sell/src/app/home/home.ts - Product browsing → Cart and checkout: uses
godunk-sell/src/app/home/home.ts - Operations UI → Operations home: routes to
- Operations UI → Customer operations: routes to
- Operations UI → Supplier operations: routes to
- Manager UI → Dashboard: routes to
- Manager UI → Inventory management: routes to
- Manager UI → Purchase orders: routes to
- Manager UI → Manager records: routes to
- Manager records → API routes: posts manager data
godunk-manager/src/app/manager/manager.ts - HTTP server → API routes: mounts
backend/server.js - API routes → Authentication: dispatches to
backend/src/routes/auth.routes.js - API routes → Product operations: dispatches to
backend/src/routes/auth.routes.js - API routes → Orders and stock: dispatches to
backend/src/routes/auth.routes.js - API routes → Profile authorization: guards profile
backend/src/routes/auth.routes.js - Authentication → Application database: reads and writes
backend/src/controller/auth.controller.js - Product operations → Application database: reads and writes
backend/src/controller/products.controller.js - Orders and stock → Application database: reads and writes
backend/src/controller/order.controller.js