This repository contains a .NET 8 WebAPI application that can be run using Docker Compose.
Before running the application, ensure you have the following installed:
- .NET SDK 8.0
- Docker
- Docker Compose (Docker Compose typically comes bundled with Docker Desktop)
Clone this repository to your local machine
The project contains a docker-compose.yml
file to orchestrate the Docker container.
Run the following commands:
-
Build the container:
docker compose build
-
Start the container:
docker compose up
By default, the application will be available at http://localhost:5002
To stop the application and remove container:
docker compose down
Once the application is running, test the endpoints using a tool like:
- Postman
- cURL
Example using cURL
:
curl http://localhost:5002/api/vatcalculations?NetAmount=1"&"VatRate=10