Skip to content

me97esn/generator-marionette-crud

Repository files navigation

generator-marionette-crud Build Status

A generator for Yeoman.

Getting Started

install via npm: $ npm install marionette-crud and yeoman of course $ npm install yo You also need to install the marionette-generator: $ npm install (-g) generator-marionette

Then, run the marionette-generator $ yo marionette after that is done, you can run the marionette-crud generator: $ yo marionette-crud Todo

This creates model, collection, composite and item view and connects them together.

Run server with $ grunt

And backend with $ node server/mongodbCrud.js

To show the generated views you can goto app/scripts/application and remove the following row: document.body.innerHTML = welcomeTmpl({ success: "CONGRATS!" });

Then add the following: App.todos.show(new TodosView({collection:todos}))

You also have to include the files in the require part at the top of application.js:

define([ 'backbone', 'communicator', 'views/composite/TodosView', 'collections/Todos' ],

function( Backbone, Communicator, TodosView, Todos ) {

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published