Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
by
Lessons:14Length:1.1 hours

Next lesson playing in 5 seconds

Cancel

Free Preview: Getting Started with Express

Introduction

01:09
  • Overview
  • Transcript

Express is one of the most popular frameworks for building web applications in Node. Recently, version 4 of Express was released, and with it there are a bunch of new features. In this course, you're going to learn Express from the ground up: not just the new features, but everything. If you haven't had a chance to look into Express before, now's your chance!

Learn JavaScript: The Complete Guide

We've built a complete guide to help you learn JavaScript, whether you're just getting started as a web developer or you want to explore more advanced topics.

1. Learning the Basics of Express

1.1 Introduction

Hello and welcome to this tuts+ screencast on the Express JS web framework. I am your instructor Andrew Burgess and in this screencast series we are going at Express JS. You can find the website for Express JS at expressJS.com. If you're not familiar with express, Express is a web application framework for building web applications with node as your backend system. Though, a couple of years ago I did a screen cast course on Express here on tuts+, however, Express has changed quite a bit since then, and more recently the fourth version of Express has come out with a lot of new and improved ways to do things. So in these screencasts, we're going to look at the most up to date way to do things in Express. Some things will be the same, but there will be a lot done differently, and so in this screencast course, we're going to get you up and running with the latest version of Express. Now if you have not seen my previous screencast course that's fine, you don't have to watch that first. We're going to cover everything in Express from the ground up in this screen cast series. So if you're brand new to Express, that's fine, let's dive in.

1.2 How to Install Express 4

So let's go ahead and install Express. As I mentioned, the Express framework is built to work on top of Node.JS. So you'll want to have Node.JS installed. You can go over to www.nodejs.org and click this big green Install button here. And you'll get a download for the latest version of Node for your operating system, Windows, Mac, or Linux. I already have Node installed, and if we come over here to the terminal, you can see that if I run node --version. Now, when you install Node, you don't get Node by itself, you also get NPM, which is the Node Package Manager. And this is how we get Express. On my desktop here, I'm going to go ahead and make a directory that I'll just call expressApp. We'll cd into that directory, and now I can do npm install express, and this is how we can download the express node package. This should just take a second. And now, as you can see, we have Express installed. If I go ahead and list all the files and folders in this directory, you can see we have node modules. And if I list the node modules directory, there you go. You can see the express folder inside that directory. So now we know that we have express installed, and we're ready to go ahead and learn all about Express. So in the next screen cast we are going to build our very first Express application.