How srisambhujel08/dewy-skincare-shop works
Dewy is a skincare shop with customer accounts and role-based administration. Shoppers browse and filter products, maintain a cart, then sign in to submit checkout; the server validates the cart and calculates the total. Account flows cover registration, login, logout, password recovery and profile/password updates, while admins manage user roles and activation. The client centralizes session state and API requests; the server handles routes and persists user data in SQLite. The sampled source supports these links; payment processing is only a placeholder, not an implemented integration.
Main entry points: App.jsx App routes · auth.jsx Auth state and API · server.js HTTP API routes · AuthPages.jsx Account forms
Components 10
Storefront
- App routes
client/src/App.jsx
Accounts
- Auth state and API
client/src/auth.jsx - Account forms
client/src/pages/AuthPages.jsx - Profile settings
client/src/pages/Profile.jsx - User administration
client/src/pages/Admin.jsx
Shop and checkout
- Catalog and cart
client/src/pages/Shop.jsx
Server and data
- HTTP API routes
server/server.js - User database
server/db.js
Other components
- Shopper
- Payment gateway
Connections 13
- Shopper → App routes: uses storefront
README.md - App routes → Auth state and API: reads session
client/src/App.jsx - App routes → Catalog and cart: routes to
client/src/App.jsx - App routes → Account forms: routes to
client/src/App.jsx - App routes → Profile settings: protects route
client/src/App.jsx - App routes → User administration: protects route
client/src/App.jsx - Account forms → Auth state and API: calls API
client/src/pages/AuthPages.jsx - Profile settings → Auth state and API: calls API
client/src/pages/Profile.jsx - User administration → Auth state and API: calls API
client/src/pages/Admin.jsx - Catalog and cart → Auth state and API: calls API
client/src/pages/Shop.jsx - Auth state and API → HTTP API routes: sends requests
client/src/auth.jsx - HTTP API routes → User database: reads and writes
server/server.js - HTTP API routes → Payment gateway: payment placeholder