In this lesson we will initialize our Express application using
After loading express through npm we will look at a couple basic functions Express exposes to us such as
.send. This will allow basic interaction via the url.
We will also see how using a package like
nodemon can allow for rapid iteration when developing an application.
Template engines allow you to define your UIs in a declarative manner while maintaining a dynamic, data driven presentation layer. This lesson will demonstrate how to use template engines that have built-in support for Express as well as engines without explicit Express support.
Take your routing skills to the next level and learn to recover from errors, initiate downloads, and go beyond simple request and response. When we get a route that does not match we don't want the page to just error out. With
.redirect we can send the user to an error page and display a helpful message.
We will go on to see how to download a file with
.download and track behavior with
As your application grows, it's easy to end up with a long list of route handlers and helper functions. In this lesson we'll look at strategies for keeping things organized and manageable.
We will move individual subpaths into their own file by using
.router to create an instance of the Express router.
Streams are a big part of Node's famous non-blocking I/O, and Express lets you take full advantage of them. This lesson demonstrates how to integrate streams into your server to improve performance and simplify your code.
We will look at
.pipe to read and write from streams.