A modern AI-powered e-commerce platform built with ASP.NET Core, designed using Clean Architecture and prepared for microservice scalability.
The system simulates a production-level online shopping platform, integrating:
- π Product management
- π³ Online payment gateway
- π¦ Order lifecycle
- π€ AI product recommendation
- π¬ AI chatbot customer support
- π’ Notification & email system
| Item | Description |
|---|---|
| Project | AI-Enhanced E-Commerce Platform |
| Backend | ASP.NET Core 8.0 |
| Architecture | Service-Oriented / Microservice-ready |
| Database | SQL Server / PostgreSQL |
| Cache | Redis |
| Payments | Stripe / PayOS |
| AI | LLM Chatbot + Recommendation Engine |
This platform demonstrates real-world backend architecture and AI service integration in a modern commerce system.
flowchart TD
Client[Web / Mobile Client]
Gateway[API Gateway]
Auth[Auth Service]
Product[Product Service]
Order[Order Service]
Payment[Payment Service]
Rec[Recommendation Service]
Chat[Chatbot Service]
Notify[Notification Service]
DB[(Database)]
Cache[(Redis Cache)]
Queue[(Message Queue)]
AI[(AI / LLM API)]
Client --> Gateway
Gateway --> Auth
Gateway --> Product
Gateway --> Order
Gateway --> Payment
Gateway --> Rec
Gateway --> Chat
Gateway --> Notify
Auth --> DB
Product --> DB
Order --> DB
Payment --> DB
Rec --> Cache
Chat --> AI
Notify --> Queue
- Clean Architecture
- Service-Oriented Design
- Loose Coupling
- Scalability
- Cloud-ready infrastructure
Handles authentication and authorization.
Features:
- User registration
- Login / logout
- JWT authentication
- Refresh tokens
- Role-based access control
Roles:
- Admin
- Seller
- Customer
Technology:
- ASP.NET Identity
- JWT Security
Manages the product catalog.
Features:
- Product CRUD
- Category management
- Product variants (size, color)
- Image management
- Inventory tracking
- Product search and filtering
Handles the shopping cart and order lifecycle.
Features:
- Shopping cart
- Checkout process
- Shipping address
- Discount codes
- Order tracking
Order Status:
Pending β Paid β Shipping β Completed
β Cancelled
Supports real-world payment integration.
Supported Gateways:
- Stripe
- PayOS
Checkout
β
Create Order (Pending)
β
Create Payment Session
β
User Pays
β
Webhook from Gateway
β
Verify Signature
β
Update Order β Paid
Features:
- Webhook verification
- Idempotency protection
- Refund support
- Transaction lifecycle management
Manages product delivery.
Features:
- Shipping provider integration
- Tracking codes
- Region-based shipping fees
Customers can evaluate purchased products.
Features:
- Star rating
- Product reviews
- Purchase verification
Users can save favorite products.
Features:
- Add to wishlist
- Remove from wishlist
- Quick access to favorite products
Administration tools for platform management.
Features:
- User management
- Product management
- Order monitoring
- Revenue analytics
- Business statistics
Provides intelligent product suggestions.
User behavior tracking:
- Product views
- Searches
- Purchase history
| Type | Method |
|---|---|
| Rule-based | Same category / popular products |
| Behavior-based | Similar user preferences |
| ML-based | External Python ML service |
GET /recommendation/home
GET /recommendation/product/{id}
GET /recommendation/user/{id}
An AI-powered customer support assistant.
Capabilities:
- Answer FAQs
- Recommend products
- Check order status
- Guide users through purchasing
Chat UI
β
Chatbot Service
β
LLM API
β Knowledge Base
(FAQ + Product + Order)
Stored data:
- ChatMessages
- ConversationContext
Handles system notifications.
Examples:
- Order confirmation email
- Payment success notification
- Password reset email
Implementation:
- Background jobs
- Email service integration
| Layer | Technology |
|---|---|
| Backend | ASP.NET Core |
| Architecture | Clean Architecture |
| Auth | ASP.NET Identity + JWT |
| Database | SQL Server / PostgreSQL |
| Cache | Redis |
| Payments | Stripe / PayOS |
| AI | LLM API |
| Queue | RabbitMQ / Kafka |
| Jobs | Hangfire / Worker Service |
| Container | Docker |
Example structure:
src/
βββ ApiGateway
βββ Services
β βββ AuthService
β βββ ProductService
β βββ OrderService
β βββ PaymentService
β βββ RecommendationService
β βββ ChatbotService
β βββ NotificationService
β
βββ Shared
β βββ Contracts
β βββ Common
β βββ Infrastructure
git clone https://github.com/your-username/ecommerce-platform.git
cd ecommerce-platformdocker compose up -dThis docker compose setup starts infrastructure only (Keycloak + Postgres). The ASP.NET Core backend is intended to run locally.
cd shopbend
dotnet restore
dotnet build
dotnet run --project Shopbe.WebPOST /api/products
Request
{
"name": "Running Shoes",
"price": 99,
"category": "Shoes",
"stock": 50
}GET /recommendation/home
- AI recommendation model training
- Real-time recommendation streaming
- Full microservice deployment
- Kubernetes orchestration
- Event-driven architecture
- Advanced analytics dashboard
This project demonstrates:
- Scalable backend architecture
- Real-world payment integration
- AI system integration
- RESTful API design
- Microservice-ready system design
This project is licensed under the MIT License.