How anil2211/qubimall works
QubiMall is a full-stack storefront. The main customer journey is browsing or searching products, adding items to a cart, checking out into an order, and reviewing order history. Authentication supports account creation and sign-in; storefront capabilities also include category shops, featured items, wishlists, and profile management. The README describes search, filtering, responsive UI, and themes. Sampled API code confirms several database and authentication calls; frontend-to-API wiring and unsampled features are represented conservatively.
Main entry points: orders Orders API · db.ts Database connection · cart Cart API · auth Authentication API
Components 23
Storefront
- Storefront pages
src/app/page.tsx - Shop listings
src/app/shops - Product details
src/app/products/[slug]/page.tsx - Catalog UI
src/components - Profile and orders UI
src/app/profile - Wishlists
src/app/profile/wishlists - Theme support
src/components/ThemeProvider.tsx
Identity
- Login and registration
src/app/(auth) - Auth state
src/components/providers/AuthProvider.tsx - Authentication API
src/app/api/auth - Token utilities
src/lib/auth/utils.ts
Commerce
- Cart and checkout
src/app/checkout/page.tsx - Cart state
src/lib/features/cart/cartSlice.ts - Cart API
src/app/api/cart - Orders API
src/app/api/orders - Product API
src/app/api/products
Data layer
- Database connection
src/lib/db.ts - MongoDB
- Product model
src/lib/models/product.ts - Cart model
src/lib/models/cart.ts - Order model
src/lib/models/order.ts - User model
src/lib/models/user.ts
Other components
- Customer
Connections 18
- Customer → Storefront pages: browses
- Customer → Login and registration: signs in
- Customer → Cart and checkout: checks out
- Authentication API → Token utilities: creates tokens
- Authentication API → Database connection: connects
- Authentication API → User model: reads/writes users
- Product API → Database connection: connects
- Product API → Product model: queries products
- Cart API → Token utilities: requires auth
- Cart API → Database connection: connects
- Cart API → Cart model: reads/writes cart
- Cart API → Product model: looks up products
- Orders API → Token utilities: requires auth
- Orders API → Database connection: connects
- Orders API → Order model: reads/writes orders
- Orders API → Cart model: clears cart
- Orders API → Product model: looks up products
- Database connection → MongoDB: connects