How sarveshss45/ecommerceapp works
ECommerceApp is a full-stack storefront and admin platform. Customers discover products, manage a cart, authenticate, and proceed through checkout, payment, and order tracking; storefront capabilities also include reviews, wishlists, addresses, and coupons. Administrators manage products and images, categories, orders, and sales analytics. The README documents the controller–service–repository–database backend pattern and the frontend API layer. Source excerpts establish detailed wiring for reviews and application registration; other feature branches are included from documented capabilities, with unverified internal links omitted or dashed.
Main entry points: App.jsx React routes · api.js API clients · CheckoutPage.jsx Cart and checkout · OrderService.cs Feature services
Components 25
Storefront UI
- React routes
frontend/src/App.jsx - Catalog and details
frontend/src/pages/ProductPage.jsx - Cart and checkout
frontend/src/pages/CheckoutPage.jsx - Order tracking
frontend/src/pages/MyOrders.jsx - Account and addresses
frontend/src/pages/MyProfile.jsx - Wishlist
frontend/src/pages/WishlistPage.jsx - Reviews UI
frontend/src/components/ReviewForm.jsx - API clients
frontend/src/services/api.js
API and application
- API controllers
backend/ECommerceApp/ECommerceApp/Controllers/OrdersController.cs - Review endpoint
backend/ECommerceApp/ECommerceApp/Controllers/ReviewsController.cs - Feature services
backend/ECommerceApp/ECommerce.Application/Services/OrderService.cs - Review rules
backend/ECommerceApp/ECommerce.Application/Services/ReviewService.cs - Authentication
backend/ECommerceApp/ECommerce.Application/Services/AuthService.cs
Domain and persistence
- Commerce entities
backend/ECommerceApp/ECommerce.Domain/Entities/Product.cs - Review entity
backend/ECommerceApp/ECommerce.Domain/Entities/Review.cs - Feature repositories
backend/ECommerceApp/ECommerce.Infrastructure/Repositories/OrderRepository.cs - Review repository
backend/ECommerceApp/ECommerce.Infrastructure/Repositories/ReviewRepository.cs - EF data context
backend/ECommerceApp/ECommerce.Infrastructure/Data/AppDbContext.cs - SQL Server
Admin operations
- Admin screens
frontend/src/pages/admin/AdminDashboard.jsx - Admin endpoints
backend/ECommerceApp/ECommerceApp/Controllers/AdminProductsController.cs
External services
- Razorpay service
backend/ECommerceApp/ECommerce.Infrastructure/Services/PaymentService.cs - Razorpay
Other components
- Customer
- Administrator
Connections 28
- Customer → React routes: uses
- Administrator → React routes: uses
- React routes → Catalog and details: routes to
frontend/src/App.jsx - React routes → Cart and checkout: routes to
frontend/src/App.jsx - React routes → Order tracking: routes to
frontend/src/App.jsx - React routes → Account and addresses: routes to
frontend/src/App.jsx - React routes → Wishlist: routes to
frontend/src/App.jsx - React routes → Admin screens: routes to
frontend/src/App.jsx - Catalog and details → API clients: requests data
- Cart and checkout → API clients: requests data
- Order tracking → API clients: requests data
- Account and addresses → API clients: requests data
frontend/src/pages/MyProfile.jsx - Wishlist → API clients: requests data
- Reviews UI → API clients: uses
frontend/src/components/ReviewForm.jsx - API clients → API controllers: calls API
- API clients → Review endpoint: calls API
- Review endpoint → Review rules: delegates to
backend/ECommerceApp/ECommerceApp/Controllers/ReviewsController.cs - Review rules → Review repository: queries
backend/ECommerceApp/ECommerce.Application/Services/ReviewService.cs - Review repository → EF data context: reads and writes
backend/ECommerceApp/ECommerce.Infrastructure/Repositories/ReviewRepository.cs - EF data context → SQL Server: persists
- API controllers → Feature services: delegates to
- Feature services → Feature repositories: uses
- Feature repositories → EF data context: uses
- Admin screens → Admin endpoints: manages via
- Admin endpoints → Feature services: delegates to
- Cart and checkout → Razorpay service: initiates payment
- Razorpay service → Razorpay: creates payment
- Authentication → Feature repositories: uses user data