How yerk0w/snowpeak works
SNOWPEAK is a winter-sports equipment shop with an Express/SQLite API and a browser storefront. The main customer journey is browse products, choose variants, manage a cart, and submit an order; separate paths handle sign-in, feedback, and reservations. Administrators use CRM data and status-management endpoints. The frontend and API are each concentrated in one source file. Reservation UI and some CRM interactions are not shown in the excerpts, so only documented or directly visible connections are included.
Main entry points: index.js Express API · main.js CRM dashboard
Components 12
Storefront
- Product catalog
src/main.js - Product selection
src/main.js - Cart
src/main.js
Customer workflows
- Order checkout
src/main.js - Account login
src/main.js - Feedback form
src/main.js - CRM dashboard
src/main.js
REST API
- Express API
server/index.js - Reservation endpoints
server/index.js
Persistence
- SQLite store
server/index.js
Other components
- Shopper
- Administrator
Connections 21
- Shopper → Product catalog: browses
src/main.js - Product catalog → Express API: loads products
src/main.js - Express API → SQLite store: reads products
server/index.js - Shopper → Product selection: selects item
src/main.js - Product selection → Cart: adds variant
src/main.js - Shopper → Cart: manages items
src/main.js - Shopper → Order checkout: submits order
src/main.js - Order checkout → Express API: posts order
src/main.js - Express API → SQLite store: saves order
server/index.js - Shopper → Account login: signs in
src/main.js - Account login → Express API: requests login
src/main.js - Express API → SQLite store: checks account
server/index.js - Shopper → Feedback form: sends message
src/main.js - Feedback form → Express API: posts feedback
src/main.js - Express API → SQLite store: saves feedback
server/index.js - Shopper → Reservation endpoints: requests booking
README.md - Reservation endpoints → SQLite store: stores booking
server/index.js - Administrator → CRM dashboard: opens CRM
src/main.js - CRM dashboard → Express API: loads overview
src/main.js - Express API → SQLite store: reads CRM records
server/index.js - CRM dashboard → Reservation endpoints: manages bookings
README.md