How srivastavaayush084/home-rituals works
Home Rituals is a home-goods commerce application with a React storefront and an Express API. The principal customer flow is browsing products, managing a cart, submitting checkout/payment, and viewing order outcomes; accounts, reviews, editorial content, and administration are related capabilities. Source excerpts confirm routing, API requests, order/payment behavior, and review handling. Several page and controller implementations were not sampled, so their detailed wiring is left unspecified.
Main entry points: App.tsx Web app · apiClient.ts API client · routes API route modules · db.ts Application database
Components 24
Storefront
- Web app
Home Rituals/src/App.tsx - Catalog browsing
Home Rituals/src/pages/ShopPage.tsx - Product details
Home Rituals/src/pages/ProductPage.tsx - API client
Home Rituals/src/utils/apiClient.ts
Commerce
- Cart and wishlist
Home Rituals/src/pages/CartPage.tsx - Checkout
Home Rituals/src/pages/CheckoutPage.tsx - Payment flow
Home Rituals/src/pages/PaymentPage.tsx - Order outcome
Home Rituals/src/pages/OrderSuccessPage.tsx - Order handling
server/src/controllers/orderController.ts - Payment handling
server/src/controllers/paymentController.ts
Accounts
- Account profile
Home Rituals/src/pages/ProfilePage.tsx - Sign in/up
Home Rituals/src/pages/LoginPage.tsx - Authentication
server/src/controllers/authController.ts
Content and admin
- Blog reading
Home Rituals/src/pages/BlogPage.tsx - Admin console
Home Rituals/src/components/admin/AdminLayout.tsx - Review handling
server/src/controllers/reviewController.ts
API and persistence
- HTTP API
server/src/index.ts - API route modules
server/src/routes - Domain controllers
server/src/controllers - Application database
server/src/utils/db.ts
Other components
- Shopper
- Administrator
- Paytm gateway
- Email delivery
Connections 35
- Shopper → Web app: uses
- Administrator → Web app: uses
- Web app → Catalog browsing: routes to
- Web app → Product details: routes to
- Web app → Cart and wishlist: routes to
- Web app → Checkout: routes to
- Web app → Payment flow: routes to
- Web app → Order outcome: routes to
- Web app → Account profile: routes to
- Web app → Sign in/up: routes to
- Web app → Blog reading: routes to
- Web app → Admin console: routes to
- Catalog browsing → API client: requests data
- Product details → API client: requests data
- Cart and wishlist → API client: requests data
- Checkout → API client: requests data
- Payment flow → API client: requests data
- Account profile → API client: requests data
- Sign in/up → API client: requests data
- Blog reading → API client: requests data
- Admin console → API client: requests data
- API client → HTTP API: HTTP requests
- HTTP API → API route modules: mounts routes
- API route modules → Authentication: dispatches auth
- API route modules → Payment handling: dispatches payments
- API route modules → Review handling: dispatches reviews
- API route modules → Domain controllers: dispatches domains
- Order handling → Application database: reads and writes
- Authentication → Application database: reads and writes
- Review handling → Application database: reads and writes
- Payment handling → Application database: reads and writes
- Order handling → Paytm gateway: starts transaction
- Payment handling → Paytm gateway: verifies payment
- Order handling → Email delivery: sends notices
- Authentication → Email delivery: sends account mail