Skip to content

henryfw/backbonethis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BackboneThis

This app (http://backbonethis.com) is made for users to easily generate some basic JavaScript code for use with Backbone.js.

The app takes an JSON input in the following form:

{
    collectionName : {
        url: '/collection_url',
        model: {
            modelName : {
                defaults: {
                    field_1 : "",
                    field_2 : "",
                    field_3 : "",
                },
                optionalMethod : function(e) {
                    return this.get('field_1');
                },
                urlRoot : '/collection_url'   // optional urlRoot
            }
        }
    } 
}  

The input will be transformed into basic Backbone code for collections and models. There will also be two Backbone view components, two underscore templates, and a router for basic CRUD operations. These are based on Thomas Davis's Video Backbone Tutorial at https://www.youtube.com/watch?v=FZSjvWtUxYk

You may test your code live on http://backbonethis.com by clicking on the preview button at the bottom. This app comes with a REST api backend using PHP and MongoDB. The api will create new collections as they are called. All data on that server will be flushed frequently.

=========

MIT License

About

Backbone.js CRUD Generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published