sample program for backbone and socket.io and node.js and redis
JavaScript CoffeeScript CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app/assets/javascripts
models
public
routes
views
.gitignore
README.md
app.js
package.json

README.md

This is an application for trivial blog. This is almost the same as backbone-rails. But it uses node.js instead of rails. and socket.io for data sync and redis for data store. The below link is nice reference for backbone-reails. A basic Rails and Backbone.js example

system requirements

  • redis
  • node.js

start

npm install

redis-server

node_modules/mincer/bin/mincer.js -I app/assets/javascripts -o public/assets /Users/morita/pkg/backbone_socket_io/app/assets/javascripts/blogs.js.coffee

node_modules/uglify-js/bin/uglifyjs --compress --mangle -- `cat public/assets/manifest.json|grep 'blogs.js":'|awk '{sub(/.*:/,"");gsub(/[" ]/,"");print "public/assets/"$0} '` > public/assets/bundle.js

node app.js