A structured E-Commerce RESTful API built with ASP.NET Core following the Clean Architecture pattern.
The project provides backend services for products, orders, and more — ready to be connected with a frontend.
- Structure
- Features
- Tech Stack
- Getting Started
- Contributing
- License
- Core → Contains the domain models, interfaces, and business logic.
- Infrastructure → Handles database operations, repositories, and Identity.
- API → Exposes REST endpoints for the frontend or clients.
- Product Management
- Cart System
- Pagination
- RESTful API
- DTOs & AutoMapper
- Layered architecture
- .NET 8
- Entity Framework Core
- SQL Server (LocalDB)
- AutoMapper
- Swagger / Postman
- .NET 8 SDK or later
- SQL Server
- Visual Studio or any IDE supporting .NET
- Download the project as a
.rarfile (provided separately). - Extract the
.rarfile to your preferred directory. - Open the project in Visual Studio (or your preferred IDE).
- The link to the repository will be shared once available.
In appsettings.json of the API project:
"ConnectionStrings": {
"EcomDatabase": "Server=(localdb)\\ProjectModels;Database=FirstEcom;Trusted_Connection=True;MultipleActiveResultSets=true"
}
Make sure EF Core tools are installed, then run:
cd Ecom.infrastructure
dotnet ef database updatecd ../Ecom.API
dotnet run