Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Connected Scholar is an online workspace for students and scholars to draft writing projects while tracking the progression of one’s ideas through exploratory, intellectual engagement with established works.
Ruby JavaScript Other
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
etc
features
lib
log
public
script
spec
test
vendor
.gitignore
.rspec
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Connected Scholar

Setup

Install Ruby and Rails

This project is primarily a Ruby on Rails application. As such, you'll have to install Ruby and Rails. If you are not familiar with either of these, we suggest reading this Rails guide.

First, make sure you are using Ruby 1.9.2 by running the following command. You should see some output like the one below.

$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.0.1]

Next, check to make sure RubyGems installed by running the following command, and look for similar output:

$ gem -v
1.8.6

If the commands above were not succesful, then read through this guide on downloading and installing Ruby and RubyGems.

Checkout johnson from https://github.com/inukshuk/johnson.git.

git clone https://github.com/inukshuk/johnson.git cd johnson git checkout experimental rake compile rake gem gem install pkg/johnson-2.0.0.pre3.gem

Next, install Bundler. This is a tool that will manage your RubyGems for this application. Run the following command:

gem install bundler

With bundler installed, you can now use it to get all of the application's dependencies. Change directories to the location you have this project checked out, and run the following command:

bundle install

This will install Rails as well as a host of other Gems.

Checkout Citation Styles

Run the following command to checkout the citation styles needed by the app:

rake citation_styles:checkout

Install etherpad-lite

(Note: these steps are only designed to work on *nix systems. And they have only been tested on Mac OS X).

Run the following command to install Node.js, NPM and etherpad-lite

rake etherpad:install

Node.js (one of etherpad-lite's dependencies) will be installed in ~/opt. You can optionally set the PREFIX environment variable to the location you would like to install Node.js.

Next, run etherpad in a seperate terminal so we can make sure it works.

rake etherpad:run

And check it thusly

rake etherpad:check

Prepare the database

The follow commands will create the application's database, schema and some preloaded data:

rake db:migrate
rake db:seed

Run

If the etherpad server is not already running, execute this command:

rake etherpad:run

The run the rails application:

rails server

Both processes must be working in order for the collaborative editing environment to work. You can run the Rails application without the etherpad server (it will prompt you at start up to make sure thats what you want). But some things will not work.

Login

The following default user will have been created for you:

Upgrade

Occasionally, the version of etherpad we use will change. If this happens, the commands above will prompt you to upgrade etherpad before continuing. To do this, run the following command:

rake etherpad:checkout

In the very rare event that the the etherpad dependencies change, you will have to reinstall the entire suite:

rake etherpad:uninstall
rake etherpad:install
Something went wrong with that request. Please try again.