Express

TotT 2014

Express

"Express is a minimal and flexible node.js web application framework, providing a robust set of features for building single and multi-page, and hybrid web applications."
- expressjs.com

Use Cases

  • Single page web apps
  • Multi-page web apps
  • RESTful web APIs

Express Concepts

  • Application
  • Server
  • Routes
  • Request
  • Response
  • Middleware

Demo: Application, Server

Host, port, event loop

Demo: Application, Server

Demo: Routes, Request, Response

Verbs, paths, parameters

Demo: Routes, Request, Response

Demo: Middleware

Logging, error handling

Demo: Middleware

Review

  • Application
  • Server
  • Routes
  • Requests
  • Responses
  • Middleware