How desaipraniket-web/spices works
SPICES is a spice storefront with a small Node HTTP backend. The customer workflow spans browsing catalog content, managing a cart, authenticating or checking out, and submitting an order; the backend validates delivery details, calculates totals, and persists orders. Separate admin routes support sign-in and management of orders, users, and storefront content. The README is only a title, and browser-side files were not sampled, so their detailed behavior and API wiring are not asserted.
Main entry points: server.js API routes · shop.html Catalog pages · product.html Product page · cart.html Cart page
Components 19
Storefront
- Catalog pages
pages/shop.html - Product page
pages/product.html - Cart page
pages/cart.html - Checkout page
pages/checkout.html - Account access
pages/auth.html - Store content
assets/js/data.js - Blog pages
pages/blogs.html - Search page
pages/search.html - Category page
pages/category.html - Blog detail
pages/blog-detail.html - Contact page
pages/contact.html
Backend
- HTTP server
server.js - API routes
server.js - User authentication
server.js - Order processing
server.js - JSON database
server.js
Administration
- Admin interface
pages/admin.html - Admin management
server.js
Other components
- Customer
Connections 19
- Customer → Catalog pages: browses
- Customer → Product page: views products
- Customer → Cart page: manages cart
- Customer → Checkout page: submits checkout
- Customer → Account access: signs in
- Customer → Blog pages: reads blogs
- Customer → Search page: searches
- Customer → Category page: browses category
- Customer → Blog detail: reads article
- Customer → Contact page: contacts
- HTTP server → API routes: dispatches API
server.js - HTTP server → Catalog pages: serves static
server.js - API routes → User authentication: routes auth
server.js - API routes → Order processing: routes orders
server.js - API routes → Admin management: routes admin
server.js - User authentication → JSON database: reads and writes
server.js - Order processing → JSON database: reads and writes
server.js - Admin management → JSON database: reads and writes
server.js - API routes → Store content: loads defaults
server.js