Skip to content

ssidorchik/express-backbone-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Express.js + Backbone.js demo project

This project demonstrates how a simple application can be created with JavaScript thechnologies. It works as a simple SPA. The main page contains a hardcoded grid of documents. Clicking on a document application navigates to document details page.

The application is splited into client part to serve html pages and service part to provide data api.

Used technologies

  • Express.js
  • Backbone.js
  • Backbone.Marionette
  • RequireJs
  • Handlebars

Installation

Make sure node.js and grunt-cli are installed.

Clone github repository

$ git clone git@github.com:SSidorchick/express-backbone-demo.git

Service

Move to service folder

Install npm dependencies

$ npm install

Run app

$ node app.js

Client

Move to client folder

Install npm dependencies

$ npm install

Install bower dependencies

$ bower install

Run app

$ grunt

TODO

  • Create controller for Document model and move the views creation from Router to it
  • Splite Handlebars templates in parts for each Backbone view respectively
  • Remove Backbone Events usage and introduce event object that can be used by view to trigger events and controller to add handlers on this event
  • Add RequireJs code compilation for production environment
  • Add package management for JavaScript libraries such as Backbone, Handlebars, etc