This application is designed for designed and developed for GreenFlux.
These instructions will guide you on how to run and use the application on your local machine.
You will need the following prerequisites to run the application:
- .NET 7.0.308 SDK: .NET 7.0 SDK Download Page
-
Clone the project to your local machine:
git clone https://github.com/serdarakay/charge-station.git
-
Navigate to the project directory:
cd your-repo/GreenFluxSmartChargingAPI -
Run this command:
dotnet add package Microsoft.EntityFrameworkCore dotnet add package Microsoft.EntityFrameworkCore.Design dotnet add package Microsoft.EntityFrameworkCore.Sqlite dotnet tool --global dotnet-ef dotnet ef migrations add initial dotnet ef database update
-
Navigate to the Test project directory:
cd your-repo/XUnitTest dotnet add package Microsoft.AspNetCore.Mvc.Testing dotnet add package Microsoft.EntityFrameworkCore.InMemory -
Run Project and then you can test all endpoints at swagger.
-
You can test all endpoints into this url.
You can use swagger guidance to test api end points.