gsass1 / gpiu-national-study

Study platform for the defunct GPIU study

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GPIU - National Study Platform

pipeline status coverage report

Developed by

  • Felix Münscher
  • Gian Sass

Setup

Dependencies

In order to get this app running, the following dependencies are required:

  • Ruby: 2.7.4
    • Installation via rbenv recommended
  • SQLite
    • For development environment
  • PostgreSQL
    • For production environment
    • Installation via docker recommended

Configuration

  • To install all Gems, run: bundle install
    • To install without production gems, run: bundle install --without=production
  • If wicked_pdf fails to install, take a look into chapter Export PDF

Database Seed

The database has to be applied for any new instance of the application.

  • In production only the participating countries are initialized.
  • In development the seed will not only initialize the participating countries, but setup a suite of test data. See below.

To apply the seed, the following command has to be executed

rails db:seed
Development Test Data

In development mode the following test data will be created:

  • 1 Admin User
  • 1 Regional Admin User for each country
    • E-Mail: regional_<iso2-code>@test.org
    • Password: test123
  • 5 Random Users
    • E-Mail: user<i>@test.org
      • i can be 1 - 5
    • Password: test 123
  • 10 Hospitals for random countries
    • With 1-5 random departments

Export PDF

The export uses wkhtmltopdf. It should be included as a binary gem using bundler. If this fails, install wkhtmltopdf using your distribution and tell wicked_pdf where the local installation is. Tell bundler to install without the binary by running bundle install --without wk_binary.

Emails

To receive emails during development install the mailcatcher gem and then navigate to localhost:1080 to receive outgoing emails.

Deployment

Setup

CI/CD

About

Study platform for the defunct GPIU study


Languages

Language:Ruby 71.0%Language:Slim 22.6%Language:SCSS 2.7%Language:HTML 1.8%Language:JavaScript 1.8%Language:Dockerfile 0.2%