I've Developed Backbone+Bootstrap Single Page Starter App, Feedback Appreciated

1 points by tux_warrior ↗ HN
Here is the github link:

https://github.com/prahladyeri/experimental-backbone

I know angular is the hot favorite these days, but I wanted to work with a vanilla framework to understand the inner workings of JavaScript. I think angular does too much magic on its own which could be useful for rapid development, but not for learning.

Presently, the app works offline and uses the browser's IndexedDB database for storage, but could be easily re-factored to use a real backend by updating the data.js script (which I'll be doing soon).

Presently, the app doesn't do much except user handling (registration and authentication) and displaying a few lorem-ipsum pages, but I think it provides a good stencil for building anything non-trivial. Regarding architecture, I've tried to follow the separation of concerns as much as possible in the following manner:

    routes.js - Handles all routes in hashtags, redirects to login view if not authenticated.
    views.js - View definitions, can be used as it is or further componentized into /view/login.js, /view/register.js, etc. Also, underscore.js is used as a template engine.
    data.js - Implements the data service (app.dbs).
    app.js - Most important component as it implements the event bus (app.bus) which is the key apparatus in keeping the various components separate.
Finally, I'm a backend developer and just learning frontend, so this is kind of just a beginner effort.

You are welcome to share and improvise. I'd love to hear feedback from you regarding this!

1 comment

[ 3.4 ms ] story [ 10.1 ms ] thread