Just Express (with a bunch of node and http). In detail.
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?
More
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)
- You have a working knowledge of JavaScript (Not a ninja, but you should not be brand new).
- You have at least run a Nodejs program before. I will cover some basics, but this is NOT an intro to node class.
- You have basic command line knowledge (at least capable of navigating and running a program)
- You have a computer capable of running Nodejs.
- Beginner node developers who want to learn Express but overwhelmed by full MERN or MEAN courses
- Beginner node developers who need a review of JUST Express js
- Developers who want to go into the various pieces of Express in a little more depth without having to look at the docs
- Developers interested in using node as a webserver or using web sockets with Express
What you'll learn:
- Express. That's (mostly) all we cover so when you finish, you'll know it!
- Set up an Express server that can do anything Express can do!
- Operate that Express Server as a REST API
- Use that Express Server to render your front-end web pages with EJS, PUG, & handlebars
- Understand the basics of HTTP and the request/response cycle
Watch Online Just Express (with a bunch of node and http). In detail.
# | Title | Duration |
---|---|---|
1 | Course Overview | 03:44 |
2 | Install node and npm on Mac | 04:15 |
3 | Install node and npm on PC | 04:44 |
4 | Pre-Express | 06:06 |
5 | How the Internet Works - TCP and UDP | 18:11 |
6 | What is an HTTP request and how does it work? | 14:13 |
7 | Course Housekeeping - How I do Nodejs | 05:23 |
8 | Node/HTTP servers 101 | 15:23 |
9 | Serving up routes and static files in plain Node (no fun...) | 21:26 |
10 | What is Express and why should I care? | 09:19 |
11 | Enter Express... the basics | 11:30 |
12 | Basic Routing in Express | 14:42 |
13 | Serving Static Files in Express | 16:07 |
14 | Middleware. (It's all Express really is.) | 16:16 |
15 | Putting on your Express helmet, and other awesome Express middleware | 17:07 |
16 | Responding with JSON | 09:45 |
17 | STOP - Time for a Review | 19:11 |
18 | Chose your weapon - API or server side rendering | 16:11 |
19 | Wiring up Express with a view engine | 19:15 |
20 | Rendering in Express (with EJS) - Part1 of 2 | 16:08 |
21 | Rendering in Express (with EJS) - Part2 of 2 | 19:12 |
22 | Rendering Engine Option 2. Handlebars | 09:07 |
23 | Rendering Engine Option 3: Pug/Jade | 10:48 |
24 | Getting data from the request object - forms and cookies | 28:40 |
25 | Getting data from the query string | 12:55 |
26 | Getting data from params (URL wildcards) - req.params and req.param() | 17:26 |
27 | Sending files, and headers already sent! | 15:21 |
28 | The Router | 17:53 |
29 | The Express Generator | 14:20 |
30 | STOP - Checklist Update and Short Review | 04:58 |
31 | Don't fear the HTTP headers!! | 28:57 |
32 | Project Overview | 04:30 |
33 | Project Setup | 09:36 |
34 | Adding the request module | 12:49 |
35 | Putting the data in the template | 10:23 |
36 | Adding the single-movie view | 20:55 |
37 | Adding the search feature | 17:11 |
38 | Project Overview and Setup | 06:27 |
39 | Project structure and routes | 07:40 |
40 | First route and middleware | 15:07 |
41 | Movie Routes and some header work | 17:17 |
42 | Movie Routes and some header work - Continued | 20:24 |
43 | Search Routes with router.use() | 13:27 |
44 | Intro to Passport | 05:04 |
45 | Overview of OAuth 2.0 | 11:14 |
46 | Passport and the github Strategy | 18:04 |
47 | Passport and the Github Strategy - part 2 | 19:13 |
48 | Intro | 02:46 |
49 | Basics of the PostGres module w/Express | 09:45 |
50 | Structuring your DB calls (w/pg) | 08:20 |
51 | The MongoDB module | 10:21 |
52 | The MySQL module | 10:57 |
53 | Express view to Express Route | 21:48 |
54 | React to Express | 17:30 |
55 | Express to S3 | 23:42 |