Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

10. Example: Todo List Part 1 (Server-side) > Installing and Setting Up Express

Installing and Setting Up Express

The first order of business on the road to building the best todo list application ever is getting a web server/framework in place to handle our backend requests. To do this we are going to use the most popular Node framework out there, Express.2 Express is easy to install and get up and running fairly quickly, and it has a vibrant development community, which makes it a great choice for the task at hand.

In a nice, fresh directory, let’s create a new file, app.coffee, that will be the starting point for our Express backend. Right now, let’s just leave that file blank while we install Express.

Express ships as an NPM,3 Node Package Manager, module. We briefly mentioned NPM in Chapter 9, “Intro to Node.js.” NPM modules are bundles of code that are packaged up and distributed and can then be installed, included, and required into Node applications. If you have Node installed, you should already have NPM installed.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial