Building an App with Express and Backbone: Part 2

In the first part of the series we created our ExpressJS app and served up all the books from our Mongo database. Today we'll accomplish the following:

  • Refactor our /books URL into the routes/index.js file
  • Move our database code into its own module
  • Set up a route to serve up an individual book's JSON
  • Learn about Mongo's ObjectID

Apologies for the slightly duller and quieter voice this time around - illness and a cold have played their part!

Express JS & Backbone: Episode 2 from The JavaScript Playground on Vimeo.

As always the code is on Github, and I highly recommend playing the video in HD so it's clearer to see (I record at my laptop's resolution so everything should be crystal clear).

If you have any questions, leave a comment and I'll either reply with a comment or answer in the next video.

Don't miss my latest course on Testing React with Enyzme and Jest! The first five videos are free and available to watch now. You'll learn how to write testable React code, test complex components and use Jest and Enzyme effectively to write clean, thorough tests. Get started now.

Subscribe to keep up to date with the latest content.

Join the JS Playground mailing list to be kept up to date with the latest tutorials, screencasts and more. You won't be spammed and you can unsubscribe at any time.

Headshot of Jack Franklin

Jack is JavaScript and React developer in London. He's also a keen Elm enthusiast, conference speaker and tweets far too often.