AuctionSystem
AuctionSystem copied to clipboard
Auction system written in ASP.NET Core
AuctionSystem
Auction System is an open-source web project where users can create multiple auctions, set the date of the auction and then users are able to bid for the given item. When the auction ends the user with the highest bid wins the item.
Azure DevOps - Build Status
Branches
- master - as this was one of the first projects I've developed, I decided to refactor the project in my free time. I've used CQRS pattern with MediatR. The mvc project is the same, I just built an API gateway, a new SPA and improved abstraction by using Clean Architecture. Down below you will find more information about the Clean Architecture.
- mvc-with-services - simple mvc project
Clean Architecture
Here's the basic architecture of this microservice template:
- Respecting policy rules, with dependencies always pointing inward
- Separation of technology details from the rest of the system
- SOLID
- Single responsibility of each layer
Automatically generated users
Username | Password | Role |
---|---|---|
[email protected] | admin123 | Administrator |
[email protected] | test123 | User |
[email protected] | test123 | User |
Getting started
Set up Cloudinary (required)
- Register a Cloudinary account.
- Create a Cloud, API key and API secret.
- In the Presentation/Api/appsettings.json and Presentation/MvcWeb/appsettings.json configuration files insert the Cloud name, API key and API secret.
Example:
"Cloudinary": {
"CloudName": "AuctionSystemCloud",
"ApiKey": "488*********516",
"ApiSecret": "3m7******************KdS"
}
Set up email notification functionality (required)
- Register a SendGrid account.
- Create an API key.
- Insert the API key in the following files:
- Presentation/Api/appsettings.json
- Presentation/MvcWeb/appsettings.json
Example:
"SendGrid": {
"ApiKey": "SG.5******************************************************DO-zfRp"
}
Set up redis cache in Api project(optional)
- Follow the docs
- In Presentation/Api/appsettings.json set RedisCacheSettings Enabled property to true
Example:
"RedisCacheSettings": {
"Enabled": true,
"ConnectionString": "localhost"
},
To run the project:
- In the /Presentation/Api folder, run in terminal:
dotnet run
and the project should be running now on https://localhost:5001
- In the /Presentation/SpaWeb folder, run in terminal:
-
npm install
-
npm start
the project should be running on http://localhost:3000
- Enjoy!!!