During AngelHack, more details in my previous blog post, I struggled to find simple BackboneJS Boilerplate to start building our fashion prototype quickly.
If you are not familiar with BackboneJS it is a very powerful MVC framework for building thick client applications. It has fully RESTful API support via it’s model methods. So after half an hour of going through Backbone Boilerplate and other samples and tutorials I ended up using Sample App with Backbone.js and Twitter Bootstrap as a foundation.
So after this experience I decided to come up with my own super simple BackboneJS boilerplate or starter kit. It has bare minimum but all the necessary components:
- RequireJS 2.0.2 included in /libs
- RequireJS Text plug-in 2.0.0 included in /libs
- jQuery 1.7.2 hot-linked from Google APIs
- Backbone 0.9.2 hot-linked from CDNJS
- Underscore 1.3.3 hot-linked from CDNJS
- Twitter Bootstrap 2.0.4 included in /css, /img, /js
To make it work just download zip or fork and clone it from GitHub.com: https://github.com/azat-co/super-simple-backbone-starter-kit. Then launch index.html in your favorite HTTP web server.
It’s a single-file application. Everything Backbone related is in app.js. Templates are in separate files and loaded via RequireJS, and Text plug-in for RequireJS.To contact Azat, the main author of this blog, submit the contact form.
Also, make sure to get 3 amazing resources to FREE when you sign up for the newsletter. Simple. Easy. No commitment.
[Sidenote]: If you liked this post and want to learn more about Node.js, MongoDB, Express.js and React.js; if you are an experienced programmer who wants to learn MEAN or MERN quickly in a convenient format (not spending hours and hours searching for free blog posts on internet—you get what you pay for, right?), then take a look at this offer.
I'm giving access to ALL of my online courses (5), ALL of my ebooks (5) and ALL cheatsheets (4) in a one convenient BUNDLE. But that's not all! Often, courses and books are not enough. Often you need to ask an expert. That's why I included a 1 hour mentorship with me with the bundle!