- Felix Münscher
- Gian Sass
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
- To install all Gems, run:
bundle install
- To install without production gems, run:
bundle install --without=production
- To install without production gems, run:
- If
wicked_pdf
fails to install, take a look into chapter Export PDF
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
In development
mode the following test data will be created:
- 1 Admin User
- E-Mail: admin@test.org
- Password: test123
- 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
- E-Mail: user<i>@test.org
- 10 Hospitals for random countries
- With 1-5 random departments
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
.
To receive emails during development install the mailcatcher
gem and then navigate to localhost:1080 to receive outgoing emails.