Welcome to my project, follow steps to application works rightly
You just need open the link https://atlanticcarsportal.herokuapp.com/swagger/index.html
- Download the project
- In the directory of the project open console and put the code
dotnet ef database update -s AtlanticCarsPortal.API
- Open the Visual Studio or VSCode as your choose
- Execute the project
- Download the project
- Create free database on https://www.db4free.net/
- change ConnectionStrings in the file
appsettings.Development.json
- In the directory of the project open console and put the code
dotnet ef database update -s AtlanticCarsPortal.API
- put the code to create docker image in the console
docker build -t atlanticcarsportal .
- put the code to create docker container in the console
docker run -d -p 5000:80 --name atlanticcarsportal atlanticcarsportal
- Open the browser and put the link http://localhost:5000/swagger/index.html
- 1 - Basic
- 2 - Economic
- 3 - Turbo
-
/Cars
-> List all existing cars in the database -
/Cars/CarsByType
-> List all existing cars in the database with the chosen type -
/Cars/{id}
-> List a car with the ID code provided -
/Cars/Distance/{distance}
-> Lists the car that will cover the given distance the fastest -
/Cars/BetterAutonomy
-> List the car with the best autonomy -
/Cars/Refuel
-> Fill up the car with the informed id with the informed amount of gasoline in liters -
/Cars/ActvateNewType
-> Change the type of car with the id informed and the type informed, see the types of existing lists in the Cars type legends
- Dotnet 6
- Decorator Pattern
- EntityFrameworkCore
- MySQL
- Swagger
- AutoMapper
- Unity Test(xUnit)
- Docker