Skip to content

youssefs20/Ecom-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECom-API (.NET Clean Architecture)

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.


Table of Contents

  • Structure
  • Features
  • Tech Stack
  • Getting Started
  • Contributing
  • License

Structure

  • 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.

Features

  • Product Management
  • Cart System
  • Pagination
  • RESTful API
  • DTOs & AutoMapper
  • Layered architecture

Tech Stack

  • .NET 8
  • Entity Framework Core
  • SQL Server (LocalDB)
  • AutoMapper
  • Swagger / Postman

Prerequisites


Setup and Installation

Option 1: Using the Provided RAR File

  • Download the project as a .rar file (provided separately).
  • Extract the .rar file to your preferred directory.
  • Open the project in Visual Studio (or your preferred IDE).

Option 2: Cloning from Repository (Link will be provided later)

  • The link to the repository will be shared once available.

1.Setup database connection string

In appsettings.json of the API project:

"ConnectionStrings": {
  "EcomDatabase": "Server=(localdb)\\ProjectModels;Database=FirstEcom;Trusted_Connection=True;MultipleActiveResultSets=true"
}

2.Apply migrations

Make sure EF Core tools are installed, then run:

cd Ecom.infrastructure
dotnet ef database update

3.Run the API

cd ../Ecom.API
dotnet run

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages