Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Understanding Express Middleware!
You have completed Understanding Express Middleware!
Preview
Let's see middleware at work in a larger Express application. The mechanics from this basic example can be applied to build much more sophisticated applications.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
Let's write an app that accepts a number
from the user and doubles it like so.
0:00
Download the project files
if you like to follow along.
0:07
I've used Express generator to create
an express app which I then modified.
0:10
To build the app, I've already written
a template file and a routes file.
0:15
The pug template generates a form
with one input and a submit button.
0:20
The form submits a post
request to the Express app.
0:26
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up