Build a shoppping cart with MarionetteJS (1)


MarionetteJS adds to Backbone a structure to build large event-driven applications.

This article explains how to build a fully functional shopping cart with MarionetteJS and Apiary using  CompositeView and modules .

You can access all files here explained in this repo.

Continue reading


Create a static server with node-static

We’ll use node-static to create the instance, first load it from npm:

$ sudo npm install node-static

Create a server.js file in your root path:

To activate your static server, run:

$ node server.js

Now you’ll have access to all your static files inside /public folder, for example home.html -> http://localhost:1331/home.html.