Simple node API that prints the numbers from 1 to 100 by default upon receiving a single request with no parameters. For multiples of 3, print the word 'Pé', for multiples of 5 print the word 'Do'. For multiples of both 3 and 5, print 'Pédo'
Single request with no parameters return numbers from 1 to 100 including the words 'Pé' and 'Do'Define interval of numbers to print in the request (only positive numbers)Default 404 not found- Create documentation
InstallationUse Swagger to document the API- Simple guide introduction to the swag documentation tool
- Testing
TDD tests to the pedoLogic function- Black-box testing
- Add security
Inside the project folder, in the terminal run the following commands
Install the project dependencies by running
$ npm install
Start the server by running
$ npm start
By default is set to 3000, you can change it by running
$ export PORT=<number> // Unix systems
After you install all the above dependencies make sure you have mocha installed globally by running
$ npm i -g mocha // Unix systems (make sure you have sudo previleges)
After that you just need to run in your terminal
$ npm test