iryonetwork / wwm

Iryo's pilot project for refugee camps
7 stars 3 forks source link
ehr golang

Iryo for Walk With Me

This project holds Iryo's first pilot project developed together with Walk With Me foundation.

Requirements

How to set up and work with the repository

# clone the repository
mkdir -p $GOPATH/src/github.com/iryonetwork
cd $GOPATH/src/github.com/iryonetwork
git clone git@gitlab.3fs.si:iryo/wwm.git
cd wwm

# prepare the repository (sync vendor folder, etc.)
make

# run tests
make test

# start backend up
make up

# start cloud frontend
cd frontend/cloud && yarn install && yarn run start

# start local frontend
cd frontend/local && yarn install && yarn run start

Additional documentation

Development environment

Locations

Given our remote / local setup we use two predefined locations IDs the development environment:

Location ID
Cloud f7e41e48-ec79-4c78-9db6-37c0c4f78326
Local 2d04b22e-1cc3-46b4-96dd-2bee5bad9ffa

All predefined data set on service init should use these two IDs when working with locations.

Trubleshooting

Slow resolving of *.iryo.local domain

On OSX it's common to experience 5 second timeouts when using curl to request a page from .local domains. This occurs when OSX internally tries to resolve iryo.local with IPV6. To fix it, duplicate the line in /etc/hosts for all .local domains and replace 127.0.0.1 with ::FFFF:10.99.99.99.

::FFFF:10.99.99.99  iryo.local minio.iryo.local vault.iryo.local