How hybeekraft/creditlog works
CreditLog is a digital-subscription storefront with an inventory CMS. The customer journey is product discovery, checkout, stock reservation, order creation, payment verification, and credential delivery; administrators manage products and stock. The server excerpt supports the reservation, order, verification, and delivery stages, while the tree identifies the storefront, admin pages, and JSON data files. The README is only a project title, and most page and storage wiring was not sampled, so those connections are omitted rather than inferred.
Main entry points: server/index.js HTTP API and routing · api/index.js Serverless adapter · index.html Store home
Components 20
Storefront
- Store home
index.html - Shop
shop.html - Product detail
product.html - Checkout
checkout.html - Order result
success.html - Shared client logic
shared.js
Operations CMS
- Admin console
admin.html - Inventory manager
inventory.html - Activity log
activity-logs.html
Commerce backend
- Serverless adapter
api/index.js - HTTP API and routing
server/index.js - Stock reservation
server/index.js - Order creation
server/index.js - Payment verification
server/index.js - Credential delivery
server/index.js
Local data
- Product data
data/products.json - Order data
data/orders.json - Reservation data
data/reservations.json - Log data
data/logs.json
Other components
- Customer
Connections 6
- Serverless adapter → HTTP API and routing: dispatches request
api/index.js - HTTP API and routing → Stock reservation: routes inventory APIs
server/index.js - HTTP API and routing → Order creation: routes order creation
server/index.js - HTTP API and routing → Payment verification: routes verification
server/index.js - Payment verification → Credential delivery: generates credentials
server/index.js - Customer → Store home: browses