An Ecommerce WebService built with .NET Core following Clean Architecture, DDD, CQRS and SOLID principles.
- .NET 9 SDK installed.
- SQL Server running locally.
- Clone the repository
git clone https://github.com/dagweg/Ecommerce_Platform.NET.git
- Install dependencies
dotnet restore .\Ecommerce.Presentation\Api\Ecommerce.Api.csproj
dotnet tool restore
- Install EfCore globally/locally
dotnet tool install --global dotnet-ef --version 9.0.0
- Configure
appsettings.json
to suit your environment and sync migrations with db by:
dotnet ef database update --project .\Ecommerce.Infrastructure\Ecommerce.Infrastructure.csproj
- Run the Tests
dotnet test .\Ecommerce.Tests\Ecommerce.Tests.csproj
- Run the Api
dotnet run --project .\Ecommerce.Api\Ecommerce.Api.csproj
- Test the endpoints! You can use RestClient and the pre-written http test requests in
.\Ecommerce.Api\HttpRequests\
.
Incase you get unexpected errors like codeananlysis error
please use the script found in Scripts
to remove all intermediary obj
and bin
files. Just like so:
.\Scripts\cbf # Clean Build Files
MIT