Example of a Node.js server exposing a simple REST API and tests for that API using Postman
To run it, first of all install all dependencies by running this from the command line: npm install
The server will be started with: PORT=8080 npm start You can replace 8080 with a different value to run the server in a different port.
To run the tests you need to start the server in the port 8080. Then, in a separate terminal, tests can be run with: npm test
- Valerio Sevilla valerio.sevilla@gmail.com
See license (MIT License).