Skip to content

joelbarbosa/prime-number-api

Repository files navigation

Prime Number Service Test

test NodeJs for prime number

Installation

$ cd prime-number-api
$ npm install

Run

$ cd prime-number-api
$ npm start


http://localhost:8080/v1


# Check if provided number is prime
Get http://localhost:8080/v1/primenumber/is_prime?number=:number

#Return next prime number after one that passed as parameter.
Get http://localhost:8080/v1/primenumber/next_prime?number=:number

Tests

$ cd prime-number-api
$ npm test

License

MIT © joelbarbosa

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published