Mushroom Kingdom Middleware

Let's build a simple server that pipes the client's request through multiple functions.

Goals

We will talk about:

  1. Building routes

  2. Working with parameters and query parameters

  3. Application-level and route-level middleware

  4. Third-party middleware vs custom middleware

  5. Error-handling middleware

Setup

  1. Fork and clone this repository

  2. Set-up this project as an npm project

  3. Install express, body-parser, morgan, and nodemon

  4. Set-up a simple server in a new file called app.js

  5. Write a "dev" script that runs app.js with nodemon