Oct 16 2010
- 04/10/2011 - Updated application.js and application.rb thanks to @rebo's comments
In this article, I will walk through some simple steps to get a [demo app][2] up and running with [Backbone.js][3] and [Sinatra][4] on [Heroku][5].
| <?php | |
| /* | |
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
| * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
| * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
| * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
| * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
| @prefix dc: <http://purl.org/dc/elements/1.1/> . | |
| @prefix lrmi: <http://wiki.creativecommons.org/LRMI/> . | |
| @prefix owl: <http://www.w3.org/2002/07/owl#> . | |
| # note: 1) very incomplete strawman | |
| # 2) the classes, domains and ranges below are just for illustration | |
| lrmi:LearningCompetency a owl:Class . |
| require 'rubygems' | |
| require 'anemone' | |
| require 'redis' | |
| require 'trollop' | |
| require 'highline' | |
| $term = HighLine.new | |
| opts = Trollop::options do | |
| opt :redis, "Select redis store", :default => 2 |
| # $ ruby complete-build.rb ezp-manifest.txt ext-manifest.txt tki-pb4l 4.4-1.0.2 | |
| require 'fileutils' | |
| EXT_REPO_DIR = 'extension-repos' | |
| EZP_REPO_DIR = 'ezpublish' | |
| SVN2GIT = 'svn2git' | |
| SVN2GIT_FLAGS="--exclude doc --exclude '.*~$' -v" |
| 'use strict' | |
| var gulp, sass, babelify, browserify, watchify, source, util; | |
| gulp = require('gulp'); | |
| sass = require('gulp-sass'); | |
| babelify = require('babelify') | |
| browserify = require('browserify'); | |
| watchify = require('watchify'); | |
| source = require('vinyl-source-stream'); |
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/