This project consists of two components: MySystem and the Sinatra app.
MySystem is the core product that described below in the section “MySystem”, and it gets built from src/ and other directories into public/.
The whole thing is a sinatra app (called MySystem-Sinatra here on) runnable from the top directory, which gets built to the appspot/ directory and deployed from there to Google App Engine.
component to be used inside something like mozSwing (?)
Ruby & Gem dependencies
The application uses bundler to manage gem dependencies. This is required to run on googles app engine.
You can also run sinatra locally using the bundled gems using
bundler exec ruby app.rb
You can also setup a gemset using rvm
rvm use <your favorite ruby version>
rvm gemset create mysystem
rvm gemset use mysystem
rvm gemset import mysystem.gems
If you are not using RVM, you can roll the dice and try: rake gems:install — which isn’t very verbose, but
should install tall the gems listed in mysystem.gems
We just switched to JQuery and JQuery UI for our own work.
(note: that currently all dependent libraries are included in this repo, and thats not good….)
(note: We are working on reducing dependancies on these libraries.)
Building for distribution
If you have ruby installed, you should also install a few gems to run the distro rake task
sudo gem install --remote sprockets
sudo gem sources -a http://gems.opscode.com(Not clear as of 04/14/2010 why/whether we need this)
If you need to make a compact and easy to distribute version of MySystem, you can use Rake to build the system into public/ directory. Building is not required; You can preview the work simply by opening src/mysystem-dev.html in your browser.
I had installed visionmedia-jspec with
sudo gem install visionmedia-jspec
All test can be run by opening ./test/spec.dev.html in a browser.
After you have built the dist directory, you can run test on the dist opening ./test/spec.dist.html.
- authorable pallet of icons / node types.
- decouple view from models
- code documentation
- more tests
- google gears integration.
- means to handle page-out data saving.
- Subsystems: The ability to add ‘sub-modules’ inside of modules (nested modules)
- Clean up dependencies on YUI if possible.
- restructure this repository
- ?? more!
This is a simple server container/backend for the MySystem pre-prototype demo.
It uses Google App-Engine, and DataMapper.
Uses Google App Engine Gem:
sudo gem install google-appengine
Gems installed by editing Gemfile and running ‘appcfg.rb bundle .’ are checked into github. (these gems are local in ./.gems/gems/)
- install the google-appengine gem : sudo gem install google-appengine
- Follow other instructions at http://code.google.com/p/appengine-jruby/wiki/GettingStarted
- try out the app with ruby ./app.rb or at the console with irb require ‘config’
- run in developer mode with “dev_appserver.rb .” (intsalled with google-appengine gem)
- deploy the application with “appcfg.rb update .”
- the application will be available at http://ccmysystem.appspot.com/mysystem.html
rake appspot:sinatra_app builds a sinatra app deployable to appspot into the appspot/ directory.
rake appspot:deploy deploys the app to Google App Engine.
Go to top directory and do
(2) Locally in Google App Engine development environment:
Go to top directory and do
(3) From Google App Engine: