Skip to content
This repository was archived by the owner on Dec 15, 2020. It is now read-only.

Latest commit

 

History

History
46 lines (29 loc) · 1.51 KB

File metadata and controls

46 lines (29 loc) · 1.51 KB

Code Class Express

Getting started

# clone repository
$ git clone git@github.com:voorhoede/code-class-express.git

# go inside
$ cd code-class-express

# install dependencies
$ npm install

# start server http://localhost:9777
$ npm start

Exercises

  1. Use custom middelware
  2. Read request values
  3. Find a route
  4. Respond in kind

Solutions

See Solutions branch

Slides

Code class Express presentation (PDF)

What's next?

Done? You might like these code classes next:

Tips

Debugging with Node.js inspector

Node.js's built-in inspector (node --inspect) works great for debugging Node.js with Chrome DevTools. Nodemon however restarts our Node.js server on every code change creating a new URL for debugging. To have your DevTools automatically reconnect with your new app you can use the NIM (Node Inspector Manager) Chrome extension.