How nandinipriyam/shopsmart-your-digital-grocery-store-experience works
ShopSmart is a React grocery storefront backed by an Express API and MongoDB/Mongoose. Shoppers enter through the routed app, authenticate, discover and filter products, manage a cart, submit checkout details, and view orders. Administrators have separate login and dashboard flows for products, categories, users, and orders. The sampled code confirms routing, cart/checkout API calls, order administration, and Mongoose models; broader REST and capability links follow the README, while recommendations, delivery scheduling, and payment-provider behavior are not verified in the excerpts.
Main entry points: App.js Route application · backend/index.js REST API · products/index.js Product discovery · Checkout/index.js Checkout
Components 19
Shopper experience
- Route application
frontend/src/App.js - User access
frontend/src/components/Login/index.js - Registration
frontend/src/components/Registration/index.js - Product discovery
frontend/src/components/products/index.js - Cart management
frontend/src/components/MyCart/index.js - Checkout
frontend/src/components/Checkout/index.js - Order history
frontend/src/components/MyOrders/index.js
Admin console
- Admin access
frontend/src/admin_components/AdminLogin.js - Admin dashboard
frontend/src/admin_components/Dashoard/index.js - Catalog management
frontend/src/admin_components/AddProduct/index.js - Category management
frontend/src/admin_components/AddCategory/index.js - Order management
frontend/src/admin_components/Orders/index.js - User management
frontend/src/admin_components/Users/index.js
API and domain
- REST API
backend/index.js
Persistence
- Domain models
backend/db/schema.js - Database connection
backend/db/connect.js
Other components
- Shopper
- Administrator
- MongoDB
Connections 24
- Shopper → Route application: uses
README.md - Administrator → Route application: uses
README.md - Route application → User access: routes to
frontend/src/App.js - Route application → Registration: routes to
frontend/src/App.js - Route application → Product discovery: routes to
frontend/src/App.js - Route application → Checkout: routes to
frontend/src/App.js - Route application → Order history: routes to
frontend/src/App.js - Route application → Admin access: routes to
frontend/src/App.js - Route application → Admin dashboard: routes to
frontend/src/App.js - Route application → Catalog management: routes to
frontend/src/App.js - Route application → Category management: routes to
frontend/src/App.js - Route application → Order management: routes to
frontend/src/App.js - Route application → User management: routes to
frontend/src/App.js - Product discovery → REST API: requests products
- Cart management → REST API: reads and updates
frontend/src/components/MyCart/index.js - Checkout → REST API: submits orders
README.md - Order history → REST API: requests orders
- Catalog management → REST API: requests categories
frontend/src/admin_components/AddProduct/index.js - Order management → REST API: reads and updates
frontend/src/admin_components/Orders/index.js - User management → REST API: manages users
frontend/src/admin_components/Users/index.js - REST API → Domain models: uses models
backend/index.js - REST API → Database connection: connects through
backend/index.js - Domain models → MongoDB: persists records
README.md - Database connection → MongoDB: connects