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.jsonto suit your environment and sync migrations with db by:
dotnet ef database update --project .\Ecommerce.Infrastructure\Ecommerce.Infrastructure.csproj
# Setup Secrets
dotnet user-secrets set "JwtSettings:SecretKey" "SECRETKEY_HERE" --project .\Ecommerce.Api
dotnet user-secrets set "EmailSettings:Password" "PASSWORD_HERE" --project .\Ecommerce.Api- 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 FilesThis repository is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License.
You are free to:
- Share: Copy and redistribute the material in any medium or format.
- Adapt: Remix, transform, and build upon the material for non-commercial purposes.
Under the following terms:
- Attribution: You must give appropriate credit, provide a link to the license, and indicate if changes were made.
- Non-Commercial: You may not use the material for commercial purposes.
- No additional restrictions: You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.