Introduction to Express

Introducing JavaScript's Express web framework, a lightweight, modular library for building web applications on top of Node

Scroll down...

Content

Resources

Comments

Nearly every web server must fulfill a few basic responsibilities. It must deal with incoming requests by responding to them with the appropriate data. Static web servers will simply respond with the file for the given path. For example, "/about.html" will find and return the about.html file from the server's public directory. While this will get the job done in many cases, when we build web applications, we require dynamic responses. Every request, even those to the same URL, can return different data ("/news.html" should always show the newest news!).

Express

Express is a JavaScript library that exists to help you fulfill your web server duties. It gives you tools for routing URL patterns to specific responses. It is also very simple to integrate with a templating library (we will be using Handlebars). Express is less of a full-featured solution than other frameworks you may have heard of—such as Rails—but its unopinionated nature allows for easy customization. Because it's focused on solving a few key problems while leaving the rest to other libraries, there is not a tremendous amount you need to know to get started. So let's get started!



Sign up to track your progress for free

There are ( ) additional resources for this lesson. Check them out!

There are no additional resources for this lesson just yet!

Sorry, comments aren't active just yet!

Next Lesson: Hello Express