
Discover Node.js and Express to manage http traffic, cover tcp and udp basics, and practice middleware, rendering, and rest api within a structured environment setup and course layout.
Explore the pre-express foundation by explaining http and the basics of tcp and udp, then build a Node.js web server without Express to reveal how Express works.
Learn how to set up a node workflow using Visual Studio Code, the built-in terminal, and nodemon for automatic reloads while building an Express server.
Build a Node.js http server that serves html, css, and images by reading files, routing requests, and returning correct mime types and 404 responses.
Explore Express as a fast, unopinionated, minimalist web framework for Node.js that simplifies routing and middleware, enabling quick API and web app development with JSON handling.
Learn to serve static files with express by mounting express.static, using a public directory, and delivering images and styles from the root on port 3000.
Explore how Express acts as a router and a web framework built from middleware, using req, res, and next to shape requests and responses through app.use and routes.
Pause to review Express basics from http and tcp to middleware, routing, and static serving, covering the request-response cycle, headers, body parsing, and common response methods.
Configure Express with a view engine to render templates. Choose engines like ejs, handlebars, or pug, set the views directory, and render with res.render and data locals.
Discover how Express uses a view engine like EJS to render dynamic HTML by merging server data with templates, then send HTML, CSS, and JavaScript to the browser.
Explore Handlebars as a rendering engine, compare to EJS, and learn core syntax, nesting, and helpers like each, if, and unless, plus safe escaping.
Learn how to render with templates in express, handle form data with urlencoded, and use cookies to persist a username across login and welcome pages, including redirects and logout.
Explore express route parameters capturing dynamic url segments with /story/:storyId and req.params.storyId, enabling a single route for multiple stories and optional links, plus app.param middleware.
Discover how Express routers modularize applications by isolating routes and middleware in a dedicated router, then mount it on a path to keep code organized.
Review the latest Express concepts, focusing on HTTP headers, router use, cookies, req and res handling, deprecated req.params guidance, and testing with Postman.
Required info for this project
Create a movie fan site with express generator, configure ejs views, install helmet and nodemon, and scaffold a bootstrap-based front end with a reusable navbar and starter routes.
Implement a dynamic /movie/:id route with Express and EJS, fetch the movie data from an API, parse it, and render a single movie page with title, poster, and synopsis.
Build the most popular route by filtering the data array for most popular items, implement API key validation, and paginate results to 20 per page.
Build Express movie routes, including top rated with vote average sorting and pages of 20, plus JSON content validation for post and delete with rating checks.
Explore building search routes in an express app with router.use for query validation, enforcing api key presence, and filtering /search/movie and /search/person by title, overview, or name using includes.
You have some notion of what Node, Express, and http are or you wouldn't be here. Node and back-end JavaScript have taken the world by storm, [SOME BIG COMPANY] moved to node and it changed the world, blah blah blah. One of the first things you're going to learn in any node course is about the Express module. But how much do you really learn about it? How to render a page in one template engine? How to make a get and a post route? Most MEAN and MERN stacks students I've met learned Express in a few breaths and then moved on to MongoDB, MySQL, Angular, React, or whatever was in the rest of the tech stack. What is http anyway? Should I even care? It's easy to get 2 inches deep and find you've accomplished your task, but in fact have no idea why it works or how you'd go further. That, in my opinion, is no good for someone who wants to be a great developer!
I've had a lot of students ask for a course on just Express js because they were either overwhelmed when they learned it, or they can't find any detail on it to go further than beginner knowledge. That's what this course is for. We will go through the various pieces of Express in detail so you can know why it behaves the way it does and get the most out of it. Express 5 is currently in alpha, so when it hits beta or full release, and as questions come up, the course will expand accordingly!
Note: this course is not a quick path to launch a webapp with Express/Node. You can get that in 10 minutes in many other places. This course is meant to take a longer, deeper look at what Express js actually does.
I've been using Express since V.2, in 2012 and have seen it do just about everything. It is one of my favorite node modules and consistently one of the most downloaded on npm. There are other awesome technologies that patch into Express that get easily missed. This course will naturally lead into other things like websockets, webRTC, etc. Prepare for one of the most awesome node modules on npm!
Sections:
Environment Setup (skip if you have node installed already)
Before Express... - TCP & HTTP, making an express-less node server
Express 101 - Making a basic web sever with Express
Express 201 - Middleware and Rendering
Express 301 - Req & Res revisited, the router, and the express generator
Rendering Project
API Project
Passport (jwt & local strategy still coming)
Best Practices (Coming...)
Supplemental - connecting to various DBs (very basic - only for those already familiar with a database)