Skip to content

iryonetwork/wwm

Repository files navigation

Iryo for Walk With Me

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

Requirements

  • docker
  • docker-compose
  • go (1.9+) (brew install golang)
  • govendor (go get -u github.com/kardianos/govendor)
  • gomock (go get -u github.com/golang/mock/gomock, github.com/golang/mock/mockgen)
  • go-swagger (go get -u github.com/go-swagger/go-swagger/cmd/swagger)
  • updated /etc/hosts (127.0.0.1 iryo.local minio.iryo.local vault.iryo.local iryo.cloud minio.iryo.cloud nats.iryo.local nats-monitor.iryo.local prometheus.iryo.local prometheus.iryo.cloud pgweb.iryo.local)
  • nodejs (5 <= version <= 9) & yarn (brew install node@8 && npm install --global [email protected])

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 [email protected]: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