O'Reilly logo

Instant Backbone.js Application Development by Thomas Hunter II

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Quick start – building a Hello World app

Now that you've got the necessary script files and a project directory laid out, let's begin writing some code to confirm that the application works. This code will require all scripts we've saved to be accessible; otherwise we'll see some error messages.

We'll also go over the Web Inspector and use it to interact with our applications. Learning this tool is essential for any web application developer to proficiently debug (and even write new code for) their application.

Step 1 – adding code to the document

Add the following code to your index.html file. Notice that I'm assuming the use of LoDash and Zepto, so you'll want to update the code accordingly:

<!DOCTYPE HTML> <html> <head> <title>Backbone Application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required