Currently using Ruby 2.4.0
You may do the following in a docker machine
Install the following: Ruby, gem (may be installed with ruby automatically), mysql (google how to do this on your system, tends to vary a bit), nodejs, rbenv (on arch the ruby-build package from the aur is also required, not sure about ubuntu/macos), cmake
(Also maybe: libcurl3 libcurl3-gnutls libcurl4-openssl-dev redis-server)
Install bundle with ruby gem install bundler.
rbenv install
rbenv rehash
bundle install
cp config/secrets.yml.example config/secrets.yml
Edit it so it looks like this:
development:
secret_key_base: (AUTO GENERATED)
rake db:setup
rake rails:update:bin
bin/rails s
May need to run rbenv rehash if you've been working on something using a different ruby version or have restarted your computer etc.
Open 0.0.0.0:3000 in a browser.
Start with mailcatcher --ip=0.0.0.0 if you want to run on your webbrowser.
Download and set up https://github.com/lindskogen/chalmersit-account-mock.
Start it in a docker container (or however you want to). In this project, change config.account_ip in config/environments/development.rb to 'http://localhost:6789'.
You should now be able to log in to test admin/fkit functionality.
cp config/secrets.example.yml config/secrets.yml
docker-compose up
# run in another terminal window:
docker-compose up --build
# => Server is now live at localhost:3000