Skip to content

js-experiments/m33

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

M33

Minimalistic Backbone BoilerPlate (with RequireJS)

Version : 0.0.0

##Why ?

Sometimes, i need to create a Single Page Application very quickly, and i need something very light (Sorry Bower and Yeoman you're too fat for me). So, i've created an other (again!) Backbone Boilerplate "manually" and i use the beautifully simple Pulldown https://github.com/jackfranklin/pulldown to load and update my javascript libraries.

M33 weighs 1,2 Mo (minified and non minified versions of Bootstrap)

##Components

  • Backbone (amd version)
  • Underscore (amd version)
  • jQuery
  • Require.js and text plugin
  • Bootstrap 3

##Helpers

###DOM Observer helper (caution : WIP)

domobserver.getObserver("h1", "characterData", function(node, new_value, old_value){
    console.log("h1 has change",node, new_value, old_value)
});

See https://github.com/k33g/m33/blob/master/components.data.js about versions

##Install

git clone --q --depth 0 git@github.com:k33g/m33.git <your web app directory>

You can find a tutorial here : http://k33g.github.io/2013/08/13/THINK-SIMPLE.html.

##Update javascript libraries

First you need to install Pulldown (and nodejs) : npm install -g pulldown, then :

cd <your web app directory>
./loadjs.sh #or loadjs.cmd under windows

##How to test it ?

###OSX, Linux

cd <your web app directory>
python -m SimpleHTTPServer 8080

Then, open http://localhost:8080

###OSX, Linux, Windows

First, install http-server : npm install http-server -g, then :

http-server -p 8080

And, open http://localhost:8080

##License

M33 is available under the terms of the MIT-License.

Copyright 2013, Philippe Charrière

About

Minimalistic Backbone BoilerPlate (with RequireJS)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published