Getting Started
Real Time Monitoring Information Systems
Prerequisite
Docker > v19
Docker Compose > v2.1
Docker Sync 0.7.1
Environment Setup
Expected that PORT 5432 and 3000 are not being used by other services.
This app requires Akvo Flow API Authentication to provides correct credentials when seed or sync form and data points from Akvo FLOW.
Environment Setup:
export AUTH0_CLIENT="string"
export AUTH0_USER="string"
export AUTH0_PWD="string"
Start
For initial run, you need to create a new docker volume.
docker volume create siwins-docker-sync
./dc.sh up -d
The app should be running at: localhost:3000. Any endpoints with prefix - ^/api/*
is redirected to localhost:5000
Network Config: - setupProxy.js - mainnetwork container setup
Log
./dc.sh log --follow <container_name>
Available containers: - backend - frontend - mainnetwork - db - pgadmin
Stop
./dc.sh down -t 1
Teardown
./dc.sh down -v
docker volume rm siwins-docker-sync