Skip to content
This repository was archived by the owner on Dec 12, 2020. It is now read-only.

sourcetoad/Tadpole.js

Repository files navigation

Tadpole.js

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.

Included Libraries

File Structure

  • App/* - the contents of your application
    • css/*
    • img/*
    • templates/* - handlebars.js templates
    • js/*
      • base/*
      • views/*
      • routers/*
      • models/*
      • collections/*
  • gulpfile.js - gulp.js automated tasks

Gulp Commands

  • gulp start - runs a server on localhost:8080 and jshint
  • gulp server - runs a server on localhost:8080
  • gulp distribute - creates a folder called dist that contains a minified build of your app

Gulp Generators

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 called exampleView in app/views/exampleView.js
  • gulp g --router example - creates a file called exampleRouter in app/views/exampleRouter.js
  • gulp g --model example - creates a file called exampleModel in app/views/exampleModel.js
  • gulp g --collection example - creates a file called exampleCollection in app/views/exampleCollection.js

Getting Started

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

About

Starter backbone.js project including automation tools and libraries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •