Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

Advanced Express

via LinkedIn Learning

Overview

Tackle complex projects with Express, the most popular Node.js framework. Learn how to integrate a database, add user authentication, process files, improve app security, and more.

Syllabus

Introduction
  • Tackle any project with Express
  • What you should know
  • Get your tools ready
  • Understanding and running the sample project
1. Know the Building Blocks and Internals of Express
  • Exploring Express components and APIs
  • Important Express middleware
  • Creating a template engine for Express
2. Use MongoDB and Mongoose to Manage Users
  • Setting up a hosted MongoDB server
  • Connecting to MongoDB
  • Adding MongoDB and Mongoose to an Express project
  • Creating a user schema for Mongoose
  • Using bcrypt to hash and validate passwords
  • Adding password encryption and validation to a Mongoose model
  • Creating a user registration route
  • Testing the form and reviewing the data in MongoDB
3. Authenticate and Authorize Users
  • Understanding cookies and sessions
  • Adding cookies and sessions to Express
  • Inspecting the session object
  • Introduction to Passport
  • Adding Passport to Express
  • Setting up an authentication strategy for Passport
  • Serializing and deserializing users
  • Creating a login form with Passport
  • Providing a logout link
  • Authentication vs. authorization
  • Protecting routes
4. Handle File Uploads and Process Images
  • File upload basics
  • Handling multipart form data with multer
  • Resizing and storing images with sharp
  • Creating an image handling middleware
  • Serving images
5. Deployment and Running in Production
  • Tuning Express performance: NODE_ENV and compression
  • Tuning Express performance: Further measures
  • Add logging
  • Using the Node.js cluster module
  • Securing an Express application
  • Deployment and operation with PM2
  • Running behind a web server
Conclusion
  • Next steps

Taught by

Daniel Khan

Reviews

Start your review of Advanced Express

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.