- Create a directory and an npm module for you service using
npm initfrom the command line in the directory. This creates apackage.jsonfile that will configure how that service runs. Useserver.jsinstead ofindex.js - Add express dependancy to your project. From the comman line type:
npm i -s express
This means "node package manager, install (i) and save it to the package.json file (-s) the express package".
- Create a
server.jsfile like:
