Development and Building
Below are instructions for building the book editor yourself and a layout of how the code is organized.
Building Yourself
With Vagrant
- install virtualbox
- install vagrant
- clone github book editor repo to somewhere
- inside the repo run
vagrant up
from a command line- there is currently a bug in the build that makes it not run fully on the first pass, the workaround is to log into the vm after running
vagrant up
withvagrant ssh
, then go into/vagrant
and runnpm install
. that will finish the build for you
- there is currently a bug in the build that makes it not run fully on the first pass, the workaround is to log into the vm after running
- vagrant will take a while to configure the new vm when its done you will be able to hit "33.33.33.10" in a web browser and see the editor
Manually
- Download and extract (if necessary)
- Run
npm install
or justbower install
in the directory to download and install dependencies - Start up a webserver
Building Documentation
Documentation is built using docco
.
find . -name "*.coffee" | grep -v './bower_components/' | grep -v './node_modules' | xargs ./node_modules/docco/bin/docco
Check the ./docs
directory to read through the different modules.
Directory Layout
scripts/collections/
Backbone Collectionsscripts/configs/
App and 3rd party configsscripts/controllers/
Marionette Controllersscripts/helpers/
Miscellaneous helper functionsscripts/models/
Backbone Models and Marionette Modulesscripts/nls/
Internationalized stringsscripts/routers/
Marionette Routersscripts/views/
Backbone and Marionette Viewsscripts/views/layouts/
Marionette Layoutsscripts/app.coffee
Marionette Applicationscripts/config.coffee
Requirejs Configscripts/main.js
Initial Requirejs Loaderscripts/session.coffee
Model of Sessionstyles/
LESS and CSS Stylingtemplates/
Handlebars Templatestemplates/helpers/
Handlebars Helperstest/
Testable mock data and scriptsindex.html
App's HTML Page
License
This software is subject to the provisions of the GNU Affero General Public License Version 3.0 (AGPL). See license.txt for details.
Copyright
Code contributed by Rice University employees and contractors is Copyright (c) 2013 Rice University Code contributed by contractors to the OERPUB project is Copyright (c) 2013 Kathi Fletcher
Funding
Development by the OERPUB project was funded by the Shuttleworth Foundation, through a fellowship and project funds granted to Kathi Fletcher.