Building a Website with Node.js and Express.js

Building a Website with Node.js and Express.js

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 3h 41m | 895 MB

Although Node.js is a popular platform for building web services, it wasn’t designed for simple website development. Express.js is a fast, minimalist framework that sits on top of Node.js and allows you to build powerful single and multipage web applications and websites. In this course, instructor Daniel Khan shows how to set up the framework and build a realistic website with these technologies. Along the way, he helps you pick up bits and pieces about Express.js and improve your overall knowledge of how to work effectively with Node.js. Learn how to build a basic application with templating engines; create more flexible, modular code with conditional statements; work with POST requests, and more.

Topics include:

  • Creating a server with Express and pure Node.js
  • Handling errors in Express
  • Creating routes
  • Using templates
  • Working with the Pug template engine
  • Implementing the site structure and logic
  • Working with conditionals
  • Dealing with POST requests
  • Sanitizing user inputs and handling form errors
Table of Contents

1 Why you should learn Express
2 What you should know
3 Setting up and preparing the exercise files
4 Set up your development environment
5 The anatomy of an HTTP request
6 Creating a server with pure Node.js
7 Adding routes and logic to a pure Node.js server
8 Creating a server with Express
9 Understanding middleware, routes, and the request lifecycle
10 Handling errors in Express
11 Working with environments
12 Reviewing the provided HTML
13 Setting up the basic application structure
14 Creating the routes
15 Serving static files
16 Template engines in Express
17 Understanding Pug syntax
18 Adding Pug to our project
19 Creating a custom error page
20 Creating the index template
21 Creating reusable components with layouts and blocks
22 Using includes to factor out content
23 Creating the speakers list template
24 Creating the speakers detail template
25 Adding central configuration
26 Working with template variables
27 Adding dynamic data
28 Looping through data
29 Working with conditionals
30 Challenge Finish the speakers detail page
31 Solution Finish the speakers detail page
32 Creating a dynamic feedback page
33 Handling POST requests
34 Sanitizing user inputs and handling form errors
35 Storing data
36 Using Express generator
37 Next steps