Advanced Express

Go to class
Write Review

Free Online Course: Advanced Express provided by LinkedIn Learning is a comprehensive online course, which lasts for 2-3 hours worth of material. The course is taught in English and is free of charge. Upon completion of the course, you can receive an e-certificate from LinkedIn Learning. Advanced Express is taught by Daniel Khan.

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