O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Node.js Web Apps with Express

Video Description

In this Node.js Web Apps with Express training course, expert author Wes Higbee will teach you how to create web applications and APIs with Express. This course is designed for users that are already familiar with HTML, CSS, and JavaScript.

You will start by learning how to set up a web app, then jump into learning about the Jade view engine. From there, Wes will teach you about CRUD, including how to add the chat room view, respond with JSON, and edit chat rooms. This video tutorial also covers routers, middleware, APIs, and logging and debugging. Finally, you will learn about auth with passport, including passport user validation, protecting admin routes, and query string parameters.

Once you have completed this computer based training course, you will have learned how to create web applications and APIs with Express. Working files are included, allowing you to follow along with the author throughout the lessons.

Table of Contents

  1. Setting Up A Web App
    1. What You Will Learn 00:03:28
    2. About The Author 00:01:23
    3. Project Setup 00:02:14
    4. Spinning Up Our Server From Scratch 00:05:11
    5. Serving Index.HTML 00:04:32
    6. Serving Bootstrap Assets 00:05:52
    7. Styling Our Site 00:01:16
  2. The Jade View Engine
    1. Why View Engines? 00:02:10
    2. The Jade View Engine 00:06:32
    3. HTML Tags In Jade 00:02:16
    4. Attributes Classes And Ids In Jade 00:02:06
    5. Serving Up Jade Views 00:04:24
    6. HTML Reuse In Jade 00:06:26
    7. Code In Jade Views 00:02:37
    8. Passing Data To View Rendering 00:02:01
    9. Setting A Default View Engine 00:00:37
    10. String Interpolation In Jade 00:02:30
    11. Generating Tables In Jade 00:03:50
    12. Tabs And Spaces Oh My 00:01:21
    13. Demystifying Jade 00:02:21
  3. Crud
    1. Setting The Stage 00:01:01
    2. Add Chat Room View 00:04:21
    3. Post Chat Room Form 00:06:56
    4. Parsing Form Data From The Request Body 00:04:22
    5. Responding With JSON 00:03:20
    6. Admin Chat Rooms Workflow 00:02:21
    7. Named Route Parameters To Delete Rooms 00:05:59
    8. Edit Chat Rooms 00:06:01
    9. Edit Chat Rooms Part - 2 00:02:00
    10. Responding With 404 Not Found 00:01:39
    11. Wrap Up 00:01:23
  4. Routers
    1. Extracting An Admin Module 00:04:47
    2. Modular Admin Router 00:04:00
    3. Pluggable Admin Mount Path 00:03:15
    4. Stumbling Block - Relative Redirects 00:02:49
    5. Chaining Routes 00:01:57
  5. Middleware
    1. Understanding Routing And Middleware 00:05:45
    2. Adding Custom Logging Middleware 00:02:15
    3. Understanding Next() 00:01:31
    4. Middleware To Fetch Data 00:07:24
    5. Order Matters.Av 00:01:09
    6. Scoping Middleware 00:03:53
    7. What To Do With Errors 00:03:01
    8. Last Thoughts 00:03:19
  6. APIs
    1. A Client Side Chat App 00:01:55
    2. Setup The Client Side Chat App 00:03:01
    3. Creating An API 00:05:42
    4. Modules Are Singletons 00:01:50
    5. Postman To Test API 00:01:24
    6. API Get Room Messages 00:05:49
    7. Posting To An API 00:03:37
    8. API To Delete Messages 00:03:15
    9. Parsing JSON In The Request Body 00:03:25
  7. Logging And Debugging
    1. Express-Debug 00:03:03
    2. Logging With Morgan 00:01:45
    3. File Access Log With Morgan 00:01:28
    4. Built-In Express Debugging 00:01:57
  8. When Things Go Wrong
    1. Throwing An Error In A Route Handler 00:01:39
    2. Errors In Production 00:01:53
    3. Custom Error Handlers 00:02:40
    4. Browser Hangs 00:00:58
    5. Hanging Async Request Handlers 00:01:17
    6. Errors In Callbacks 00:03:32
    7. Don't Swallow Callback Errors 00:02:46
  9. Auth With Passport
    1. Auth With Passport 00:01:49
    2. Login Form 00:06:31
    3. Passport User Validation 00:05:20
    4. Passport Session Serialization 00:01:49
    5. Logging In 00:06:23
    6. Logout 00:03:52
    7. Authorizing Access To Block Anonymous Users 00:03:40
    8. Protecting Admin Routes 00:02:04
    9. Using User Information 00:02:48
    10. Bypassing Login In Development 00:03:11
    11. Query String Parameters 00:02:34
    12. Auth Cookies 00:02:17
    13. Last Thoughts 00:05:45