Tadpole is a boilerplate scaffold for projects built on backbone.js. It's designed to kickstart backbone application development by providing a boilerplate including powerful generators, gulp.js automation, package management, and more right out of the box.
Includes the following:
- Command line generators and automation using Gulp.js.
- Package management with Bower and Node.
- Boilerplate JS libraries including templating.
- Boilerplate directory structure, eliminating the need for configuration.
- jQuery.js
- Underscore.js
- Backbone.js
- Async.js
- Handlebars.js for templating
- Jasmine 2.1.3 for testing
App/*- the contents of your applicationcss/*img/*templates/*- handlebars.js templatesjs/*base/*views/*routers/*models/*collections/*
gulpfile.js- gulp.js automated tasks
gulp start- runs a server on localhost:8080 and jshintgulp server- runs a server on localhost:8080gulp distribute- creates a folder calleddistthat contains a minified build of yourapp
The generator commands are all subcommands of g which stands for generate. In the examples commands below example can be replaced with the name of the view/model/etc.
gulp g --view example- creates a file calledexampleViewinapp/views/exampleView.jsgulp g --router example- creates a file calledexampleRouterinapp/views/exampleRouter.jsgulp g --model example- creates a file calledexampleModelinapp/views/exampleModel.jsgulp g --collection example- creates a file calledexampleCollectioninapp/views/exampleCollection.js
The easiest way to get started with Tadpole.js is by cloning it with git.
Make sure you're in the right directory:
$ mkdir MyProject
$ cd MyProject
Clone the repo into the current directory:
$ git clone https://github.com/sourcetoad/Tadpole.js.git ./
Install required dependencies:
$ npm install
$ bower install
Install dependencies:
$ npm install
$ bower install