Express.js
Projected Time
4 hours, including lab exercise
Prerequisites
Motivation
- Express.js is one part of the MERN web development stack (MongoDB, Express.js, React.js, Node.js), we cover at Techtonica. Express.js allows you to quickly build a website served by Node.js.
- Express enables robust routing and improve performance.
- It is flexible as there are numerous modules available on npm which can be directly plugged into Express.
Objectives
Participants will be able to:
- Explain the MVC framework
- Create a basic web app using Node.js for the server and Express.js as the MVC framework
Specific Things to Learn
- What Express.js is
- What middleware is
- How to code a very simple web app using Express.js
Materials
Lesson
Common Mistakes / Misconceptions
Independent Practice
Express.js lab exercise
Challenge
Check for Understanding
- Create a new
app.js
file and make the simplest possible Express server
Supplemental Materials