YoVDO

Advanced Express

Offered By: LinkedIn Learning

Tags

Node.Js Courses MongoDB Courses Image Processing Courses Authorization Courses Mongoose Courses

Course Description

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

Related Courses

Learn Angular Routing by building a Cocktails Application
Coursera Project Network via Coursera
API Security on Google Cloud's Apigee API Platform
Google Cloud via Coursera
Authentication and Authorization with AWS Identity and Access Management (Simplified Chinese)
Amazon Web Services via AWS Skill Builder
Authentication and Authorization with AWS Identity and Access Management (German)
Amazon Web Services via AWS Skill Builder
Authentication and Authorization with AWS Identity and Access Management (French)
Amazon Web Services via AWS Skill Builder