openstax / exchange

OpenStax Exchange
Other
5 stars 5 forks source link

OpenStax Exchange

Build Status Code Climate Coverage Status

OpenStax Exchange stores and provides learner interaction "big data".

Development Setup

In development, Exchange can be run as a normal Rails app on your machine. It uses binstubs.

Running as a normal Rails app on your machine

To start running Exchange in a development environment, clone the repository, then

bundle install --without production

Just like with any Rails app, you then need to migrate the database. In our case, after the first migration we also need to load the database seeds (placeholder terms of use, etc, that the code relies on):

You may need to prefix your commands with RAILS_ENV=development

bin/rake db:migrate
bin/rake db:seed

or in one step

bin/rake db:setup

When you run

bin/rails server

Exchange will start up on port 3003, i.e. http://localhost:3003.