This API is developed using NestJS. It gets dad and Chuck Norris jokes from respectively https://icanhazdadjoke.com/ and https://api.chucknorris.io/.
The API routes are :
HTTP method | Route |
---|---|
GET | /dad-jokes |
GET | /chuck-jokes |
GET | /version |
Be sure to install the libssl-dev
library :
$ sudo apt-get install libssl-dev
Then run this command :
$ npm install
OR with Docker
docker build -t joke-api .
$ npm run start
OR with Docker
docker run -p 3000:3000 joke-api
Environment variable | Default value |
---|---|
DAD_JOKES_API | https://icanhazdadjoke.com |
CHUCK_JOKES_API | https://api.chucknorris.io/jokes/random |