Using the Express 4.0 Router to build simple API
- In dynamic mode each new json file is picked up dynamicly in the folder test/mocks/api (url: http://localhost:8090/api/)
- Node and npm
- Clone the repo:
git clone https://github.com/rvdmolen/simple-nodejs-api-server.git - Install dependencies:
npm install - Start the server with static:
node server.js - Start the server with dynamic:
node server-dynamic.js
Test your API using Postman