/Express-Middleware-Demo

Exploring Express middleware

Primary LanguageJavaScript

  1. Clone down this repo

  2. npm install

  3. "npm start" to start the server

  4. To post to the server from the terminal (with sample request body and endpoint), enter: curl -X POST -H 'content-type: application/JSON' -d '{"name": "Brian"}' localhost:3000/name

Notes:

-This project was generated using the Express generator. The only file modified from the boilerplate is routes/index.js.

-If installation went smoothly, the server should restart automatically when you save a changed file because Nodemon.