Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jshmrtn/hygeia
COVID-19 Tracing
https://github.com/jshmrtn/hygeia
covid-19 covid19-tracing disease-spread disease-transmission elixir phoenix
Last synced: about 1 month ago
JSON representation
COVID-19 Tracing
- Host: GitHub
- URL: https://github.com/jshmrtn/hygeia
- Owner: jshmrtn
- License: other
- Created: 2021-03-26T20:04:24.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-15T00:06:06.000Z (about 1 month ago)
- Last Synced: 2024-12-18T05:04:34.192Z (about 1 month ago)
- Topics: covid-19, covid19-tracing, disease-spread, disease-transmission, elixir, phoenix
- Language: Elixir
- Homepage: https://info.covid19-tracing.ch/
- Size: 26.3 MB
- Stars: 42
- Watchers: 4
- Forks: 8
- Open Issues: 162
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Hygeia
[![.github/workflows/branch_main.yml](https://github.com/jshmrtn/hygeia/actions/workflows/branch_main.yml/badge.svg)](https://github.com/jshmrtn/hygeia/actions/workflows/branch_main.yml)
[![Coverage Status](https://coveralls.io/repos/github/jshmrtn/hygeia/badge.svg?branch=main)](https://coveralls.io/github/jshmrtn/hygeia?branch=main)
[![License](https://img.shields.io/badge/License-BSL%201.1%20%2F%20Apache%202.0-blue.svg)](https://mariadb.com/bsl11/)
[![Last Updated](https://img.shields.io/github/last-commit/jshmrtn/hygeia.svg)](https://github.com/jshmrtn/hygeia/commits/main)## Development
To start your Phoenix server:
- [Install `wkhtmltopdf`](https://github.com/gutschilla/elixir-pdf-generator#wkhtmltopdf)
- Install `poppler-utils` (`brew install poppler`, `apt-get install poppler-utils`, `apk add poppler-utils`)
- Install Elixir / Node / Erlang using [`asdf`](https://asdf-vm.com/) as specified in `.tool-versions`
- Start Database```console
$ 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
- For `zsh` users I recommend https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/dotenv
- Using `` npx dotenv-cli `ps -o fname --no-headers $$ `` you can load all env variables into a new shell instead
- 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`](http://localhost:4000) from your browser.
### Translation
Extract all translation strings to create `*.pot`-files:
```console
mix gettext.extract
```Then merge those into the localized `*.po`-files:
```console
mix gettext.merge priv/gettext
```You can now edit the translations using [Poedit](https://poedit.net/) or similar software.
## Environment Variables
See [`.env.example`](./.env.example)
## Talks
### [Code BEAM V Europe 2021](https://codesync.global/speaker/jonatan-maennchen/#845covid-19-contact-tracing-on-the-beam)
[![COVID-19 contact tracing on the BEAM - Jonatan Männchen; Jeremy "Jay" Zahner | Code BEAM V Europe](https://img.youtube.com/vi/7ypfyCOfwLo/0.jpg)](https://www.youtube.com/watch?v=7ypfyCOfwLo)