Skip to content

Development Installation

camdenmoors edited this page Jun 29, 2020 · 4 revisions

General Steps

Those steps are for developing locally and running the test suite.

  • Install ruby.
  • In your terminal run gem install bundler
  • Run bundle install
  • Install postgres to your system (and create a role with your system username)
  • Run bundle exec rake db:create
  • Run bundle exec rake db:schema:load
  • Run bundle exec rake db:create_admin
  • Run bundle exec rails s
  • Open the webpage shown in your terminal from the last command in your browser.
  • Login to the registration app http://localhost:3000 with the admin credentials you created on the previous steps.

For production you will need to see Configuration.

With RVM on ArchLinux

Install the old Ruby 2.3.5 with openssl support (see stackoverflow and archlinux wiki):

$ rvm pkg install openssl
$ rvm install 2.3.5 --with-openssl-dir=$HOME/.rvm/usr

Install bundle:

$ gem install bundle
$ bundle install

Now install PostgreSQL (see archlinux wiki):

$ sudo pacman -Syu
$ sudo pacman -S postgresql
$ sudo -u postgres -i
[postgres]$ initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data'
[postgres]$ logout
$ sudo systemctl start postgresql.service
$ sudo -u postgres -i
[postgres]$ createuser --interactive
[postgres]$ logout

Follow the installation:

$ bundle exec rake db:create
$ bundle exec rake db:schema:load
$ bundle exec rake db:create_admin
$ bundle exec rails s

Open the webpage shown in your terminal from the last command in your browser.

Login to the registration app http://localhost:3000/admin and input the credentials you created during the setup process.

Clone this wiki locally