Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Inköp/skuld-hantering
Ruby HTML JavaScript Other

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
bin
config
db
features
lib
public
script
spec
vendor/assets/javascripts
.gitignore
.rspec
.rubocop.yml
.ruby-version
.travis.yml
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Cashflow

Setup for local development

  1. Install the correct version of Ruby, preferably using a Ruby version manager like RVM or rbenv.

    rvm install $(cat .ruby-version)

or

rbenv install $(cat .ruby-version)
  1. Install additional dependencies.

    sudo apt-get install mysql-server libmysqlclient-dev

  2. Run script/bootstrap. If you are prompted for a database password: kill the script with C-c, update config/database.yml with your database credentials and try again.

Running the server

  1. Start SOLR

    bundle exec sunspot:solr:start

  2. Set up a tunnel for LDAP

    ssh -L 9999:ldap.kth.se:389 KTHID@my.nada.kth.se

  3. Start the Rails server

    bundle exec rails server

replacing KTHID with your KTH username, like koronen.

Running the tests

Insert your ugid into config/local.yml in order to get the controller specs to work properly (otherwise the test code can't log in).

Test coverage

To generate coverage data, set the environment variable COVERAGE before running the test.

COVERAGE=1 bundle exec rake
Something went wrong with that request. Please try again.