Prime Numbers API is a server application, which provides REST API for two functionality:
- Determines if the given number is a prime number
- Returns the next prime number which is greater or equal to the given number
You will need the following tools:
- .NET Core SDK 3.1
or
- Docker
-
Clone the repository
-
At the root directory, restore required packages by running:
dotnet restore
- Next, build the solution by running:
dotnet build
- Next, within the
PrimeNumbers.API
directory, launch the server by running:
dotnet run
- Launch http://localhost:5000 in your browser to view the Swagger UI
-
Clone the repository
-
At the root directory, launch the container by:
docker-compose build
docker-compose up
- Launch http://localhost:80 in your browser to view the Swagger UI
- .NET Core 3
- ASP.NET Core 3