Express is a framework for writing HTTP APIs. In this example a two routes are provided which output random apis.
https://whackathon.org/examples/randomapi/random?amount=3
Outputs several random APIs
- amount :
localhost:8080/random?amount=3
Array
Outputs all APIs if the correct param is provided
- areYouSure:
localhost:8080/spoiler?areYouSure=yes_i_am_really_sure
Array
##Requirements
For this template to work you must have node and npm installed on your system.
Installs all package dependencies.
npm install
Automatically restart the server when changes are saved.
npx nodemon
Simply starts the server.
npm start