Giter Club home page Giter Club logo

backbone-serverside's Introduction

Backbone-serverside - Node.js server-side Backbone adapters

This project helps to run Backbone applications on node.js servers. It includes a few replacements of Backbone classes that are DOM dependent (history and view). After this Backbone is still jQuery dependent, but e.g. Cheerio can be used for server-side jQuery subset.

The project assumes Node.js on the server side. It is intended as a workaround for the robots (so that you would not need to write a separate server-side app for them).

The service is with Backbone 1.0, yet it might work for earlier or later revisions, too.

If you happen to be in San Francisco for HTML5DevConf, be sure to attend a presentation opening up backbone-serverside in more detail.

Installation

Installing the project itself is easy. Both build system dependencies and app dependencies are triggered by

> npm install

Usage

The replacements alone will only take you half-way. Currently the project includes an example on how to apply them with RequireJS and Node.js / Express. Use it as a boilerplate for your app.

Try the example through the bundled RequireJS + Express version. Within the 'express/requirejs' directory, run

> bower install
> npm install

It should be noted that you need to have bower installed to pull the client-side dependencies.

TODO

  • Write better usage instructions & little bit on the context
  • The server is fragile and likely multiple concurrent requests will cause a lot of headache.
  • Use express-device for detecting robots to better understand on how to deal with different agents
  • Anybody heard of writing tests for your app?

Release History

  • 2013/03/25 - v0.1.0 - Initial release

License

Copyright (c) 2013 SC5 Online, licensed for users and contributors under MIT license. https://github.com/SC5/backbone-serverside/blob/master/LICENSE-MIT

backbone-serverside's People

Contributors

conis avatar petrosoininen avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.