Course info
Sep 27, 2012
2h 14m

In this course you'll learn the basics of node.js and how to create applications using express.js, a lightweight framework for creating robust and scalable web applications. We'll go through all the elements that make up an express application, from routing, views, models and end up covering advanced scenarios such as session management, error handling and other requirements for real-world applications.

About the author
About the author

Hadi Hariri is Developer, Speaker and Technical Evangelist at JetBrains.

More from the author
HTTP/2 Fundamentals
2h 25m
Jan 28, 2016
Section Introduction Transcripts
Section Introduction Transcripts

An Introduction to Express.js
Hi, welcome to Module 2 of Web Development with Express. In this module we're going to see a brief introduction to Express, basing it on version 3. 0. We're then going to create our first Express. js application and start to get a feel for how we write applications using this framework. We'll understand the basics of routing, as well as how to pass parameters to routes and deal with queries on the URL. We'll then take a look at the different configuration options we have when creating Express applications and last, but not least we'll see how to enhance our applications by using some of the middleware that is provided to us by Connect and how Express exposes and uses this.

Hadi Hariri: Hi! Welcome to Web development with Express. This module is all about views. We'll first take a look at what views are in Express. js, followed by the Jade view engine, which is my personal favorite. We'll see how to create HTML elements in Jade; how to embed JavaScript in our views, to give them functionality; as well as how to use blocks for layout. Now, if you come from an ASP. net background, you might be familiar with the concept of master pages, or sections in Razor view engine. This is kind of similar. And last, but not least, we'll take a look at style sheets and the options we have there.

Working with Data
Hi. Welcome to Module 4 of web development with Express. In this module, we're going to be working with data. We'll see how to display data in views. Up to now, we've seen how to work with Jade View Engine and we've seen how to display static information but we'll now see how to emit information as part of the dynamic content approach. We'll take a look at how to submit information with forms so that we can operate on a data that user submits. We'll see how to do content negotiation with Express in terms of being able to send information in different formats such as text or JSON. We'll see how to upload files so that we can provide our applications with this type of functionality as well as how to download files easily. And last but not least, we'll take a look at what Express knows as locals and we can kind of think of as helpers in terms of HTML helpers or information that we want available throughout an application or a request.

Common and Advanced Scenarios
Hi. Welcome to Web Development with Express. In this module, we're going to cover a series of common and advanced scenarios that are normally required when creating web applications using Express. In particular, we're going to see how to work with Cookies which are pretty much required in any type of web application. We'll also see how to work with Sessions, which if we're doing anything that depends on a specific user, data stored per user, is also very helpful. We'll see how to extend the functionality of our routes by using custom middleware. We will see how this now enables us to perform things such as authentication as well as authorization, both basic HTTP authentication as well as form-based authentication. We'll see how to deal with errors. We'll then see how to become a little bit more efficient when creating Express Applications by using the binary express that ships with Express. And then we'll see some other peculiarities that WebStorm offers us in terms of creating web applications, and in particular, Express applications, as well as how easy it is to debug Express applications using WebStorm. Last but not the least, we'll take a look at the summary of our course and a few next steps that would be great for you to take to start developing applications using Express.