Skip to content

jshmrtn/hygeia

Repository files navigation

Hygeia

.github/workflows/branch_main.yml Coverage Status License Last Updated

Development

To start your Phoenix server:

  • Install wkhtmltopdf
  • Install poppler-utils (brew install poppler, apt-get install poppler-utils, apk add poppler-utils)
  • Install Elixir / Node / Erlang using asdf as specified in .tool-versions
  • Start Database
$ docker volume create postgres
$ docker run \
    --restart always \
    --name postgres \
    -v postgres:/var/lib/postgresql/data \
    -p 5432:5432 \
    -d \
    -e POSTGRES_PASSWORD="" \
    -e POSTGRES_USER="root" \
    -e POSTGRES_HOST_AUTH_METHOD="trust" \
    postgres:latest
  • Install dependencies with mix deps.get
  • Create Local .env file
  • Load Local .env file
  • Create and migrate your database with mix ecto.setup
  • Install Node.js dependencies with npm install inside the assets directory
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Translation

Extract all translation strings to create *.pot-files:

mix gettext.extract

Then merge those into the localized *.po-files:

mix gettext.merge priv/gettext

You can now edit the translations using Poedit or similar software.

Environment Variables

See .env.example

Talks

COVID-19 contact tracing on the BEAM - Jonatan Männchen; Jeremy "Jay" Zahner | Code BEAM V Europe