This project is an ASP.NET Core web application that calculates and allocates power production across different power plants based on input data.
- .NET 8.0 SDK
- Docker (if you choose to run the app via Docker)
-
Restore dependencies:
dotnet restore
-
Build the application:
dotnet build
-
Run the application:
dotnet run
-
Access the application at
http://localhost:8888/swagger/index.html.
-
Build the Docker image:
docker build -t powerplant-coding-challenge .
-
Run the Docker container:
docker run -d -p 8888:8888 powerplant-coding-challenge
-
Access the application at
http://localhost:8888/swagger/index.html.
- Ensure you have the necessary prerequisites installed.
- The default port for Docker is
8888, which can be adjusted as needed.