Express.js
Languages
Frameworks
Topics
- How to create a web app with Express.js
- The MVC framework
Overview
In this lab exercise, you will learn how to use Express.js to build dynamic websites on the Node.js platform. In the process, you’ll learn some fundamental HTTP concepts that you can apply to any other framework!
Context
- We know how to run a server using Node.js
- We have static HTML, CSS & JavaScript files we need to render in a Browser
- Express.js allows us to serve these static files to the Browser using Node.js
Lab Instructions
Starter Code
There is no starter code for this lab exercise.
Lab Exercise
-Work through this tutorial on Team Treehouse: Express Basics
Questions to Consider
- Ask questions here that connect what is being done in the lab exercise to what was covered in the associated lecture.
- Also ask questions that connect this lab exercise to prior lessons.
- Also ask questions that require the apprentice to put together multiple pieces of knowledge to arrive at an answer or opinion.
Extensions
- Add more HTML views and routes to your Express.js app.
- Create a blog-based website where you can write, edit and publish posts.
- Create a mock shopping cart website where a user can browse inventory, add items to their cart, and reduce the inventory count for an item when they “purchase” it.