If you set out to use Backbone.js for a client-centric application, one thing you might miss coming from a server-side MVC framework is some basic file structure, dependency managment, and generator support. To solve this problem Ben Nolan has created Capt.
Capt is aimed at developers building single page, stand alone applications as well as server-backed applications using Node.js, bundling the following projects and languages:
- Jasmine [planned]
You can grab Capt from npm
npm install capt
To check your installation and see usage help, just run
capt in your
capt new projectname - create a new project capt server - serve the current project on port 3000 capt watch - watch the current project and recompile as needed
There’s also generators to create Backbone models and controllers:
capt generate model <model name> capt generate controller <controller name>
Capt is still in alpha but is under active development. Got ideas? Why not contribute?
Have comments? Send a tweet to @TheChangelog on Twitter.
Subscribe to The Changelog Weekly – our weekly email covering everything that hits our open source radar.