Example-3

Example number 3 from Chapter 2 of Bootstrapping Microservices.

You need Node.js installed to run this.

Before running install dependencies:

npm install

Set the PORT number (on MacOS/Linux): export PORT=3000

Set the PORT number (on Windows): set PORT=3000

To start the microservice:

node index.js

Or

npm start

Then point your browser at http://localhost:3000/videos