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

voorhoede/code-class-koa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Class Koa

Getting started

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

# go inside
$ cd code-class-koa

# install dependencies
$ npm install

# koa server http://localhost:3000
# express server http://localhost:3001
$ npm run start1
$ npm run start2
$ npm run start3

Prerequisites

  1. You know a bit about Express
  2. You know a bit about async / await

Exercises

  1. Return a response
  2. Error handling
  3. Middleware

Solutions

See Solutions branch

Slides

See reveal.js presentation in the presentation folder

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.

Releases

No releases published

Packages

No packages published