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 10m | 548 MB

Node.js is a major platform for the web, used by companies like Uber, Netflix, and Intuit. Express.js is a fast, minimalist framework that sits on top of Node.js and allows you to build powerful single- and multi-page web applications and websites. In this course, instructor Daniel Khan shows how to build a realistic and robust website with these technologies. Learn how to build a basic application in minutes, transform HTML into dynamic pages, leverage template engines to modularize code, add routing and business logic, handle errors, store form data, and create API endpoints for single-page applications. Along the way, Daniel helps you pick up bits and pieces about Express.js and improve your overall knowledge of how to work effectively with Node.js.

Topics include:

  • Creating a basic Express.js application
  • Serving HTML pages and static content
  • Creating routes
  • Using templates
  • Handling errors in Express.js
  • Handling POST requests
  • Storing form data
Table of Contents

Introduction
1 Dynamic websites with Node and Express
2 What you should know
3 Using the exercise files and GitHub
4 Setting up your development environment

Building a Basic Express Application
5 Create an Express server in three minutes
6 Building from a HTML page or template
7 Serving HTML pages and static content
8 Setting up ESLint and Prettier
9 Setting up nodemon

Template Engines
10 Template engines and Express
11 Getting to know the EJS template engine
12 Rendering the index page with EJS

Express Routes and Middleware
13 Express middleware and routes
14 Modular routes with express.Router
15 Creating routes for all subpages
16 Add business logic
17 Add a session management middleware

Professional Templating with Express
18 Create a site-wide layout
19 Using partials with EJS
20 Template variables in more detail
21 Looping through lists in templates
22 Creating a list page
23 Using parameter routes
24 Challenge Partials and lists
25 Solution Partials and lists

Handling Errors Gracefully
26 How to handle errors in express
27 Creating an error page
28 Populating the error page

Handling Form Data
29 Creating a form template
30 Handling POST requests
31 Validating and sanitizing user input
32 Storing data

Creating APIs with Express
33 A little intro to REST APIs
34 Creating and testing an API endpoint
35 Add client side JavaScript
36 Updating the page from REST

Conclusion
37 Build on what you’ve learned