Create a Simple API

This tutorial is based exclusively on Maximillian Schwarzmüller's Creating a REST API with Node.js starting with Part 3 Handling Errors & Improving the Project Setup. It shows just the coding occurring in video 4.

Handling Errors & Improving the Project Setup

  1. In the node directory, install nodemon: npm --install-dev nodemon.
  2. Open package.json, and add this line just below "test": "start": "nodemon server.js". You may have to add a [ (left brackets) so that keywords looks like this:
            	"keywords": ["nodejs",
        "restful",
        "api"
      ],
    
  3. At the commend line, enter npm start