O'Reilly logo

Node.js Blueprints by Krasimir Tsonev

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

Writing the frontend

In this section, we will develop the client-side logic—the code that will run in the browser of the users. This includes the listing and managing of the to-do lists delivered by the Node.js part.

Looking into the base of the application

Before we start coding, let's have a look at the file structure. The following figure shows how our project should look:

Looking into the base of the application

The index.js file contains the Node.js code that we already wrote. The .css and .html directories hold the styles and the HTML markup of the page. In the .js folder, we will put the collection, model, and views of Backbone.js. Along with that, there are the framework's dependencies ...

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