Giter VIP home page Giter VIP logo

backbone-require's Introduction

backbone-require

A Backbone.js and RequireJS example.

Installation

This example does not require any installation as it is a static Web Application.

You can just drop the public folder on your current Web Server. If you do not have one or do not want to hesitate on moving the code and you have Node.js at hand, you can also npm install-it and this will install node-static which is a nice static Web Server; after this is done just run node server.js and browse to http://localhost:8080.

But, what is this about?

This is an example done on part of my free time as a follow up on some improvements to my personal skill set and for the current application I am working on.

The code consists on a Backbone.js application which loads dependencies and libraries using RequireJS. The application is also using Backbone-Super to make it easier to extend components to avoid code duplication (DRY). Last, but not least, I am also playing with the idea of letting the modules communicate through a Front Controller and create different dialogs using a Pop Up "Factory".

The look and feel is achieved with the simple yet powerful Bootstrap.

I like the idea, but... where do I start?

Assuming you are not familiar with RequireJS (which you totally should as this example relies on it), the main file for this example is on public/main.js. The actual Main view is on public/components/Main.js and it's HTML is on public/components/templates/Main.html. Once you are familiar with RequireJS and these 3 files you should be able to understand the rest of the code.

If you still have questions, do not hesitate in contact me on twitter, my blog or here as an issue.

Licence

This example is under an MIT licence.

backbone-require's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

jorgeriv

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.