Advanced Express
Offered By: LinkedIn Learning
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
- Exploring Express components and APIs
- Important Express middleware
- Creating a template engine for Express
- 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
- 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
- File upload basics
- Handling multipart form data with multer
- Resizing and storing images with sharp
- Creating an image handling middleware
- Serving images
- 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
- Next steps
Taught by
Daniel Khan
Related Courses
Learn Angular Routing by building a Cocktails ApplicationCoursera 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