Simple app that batches requests to song+ego to fetch and create studies along with related autho entities (ego groups and policies). This app also batches requests to ego add users to a study group.
There is a docker compose setup with ego, song, and their respective DBs with some initial values provided in ./compose
.
Start containers:
cd compose
docker-compose up -d
Config app:
.env
SERVER_PORT=3001
SONG_URL="http://localhost:8089"
EGO_URL="http://localhost:8081"
OAUTH_CLIENT_ID="adminId"
OAUTH_CLIENT_SECRET="adminSecret"
SCOPES_WRITE="DOMAIN.WRITE"
EGO_STUDY_PREFIX=-"STUDY-"
Start app:
npm run dev
Default Studies:
DASH-CA
COVID-PR
TEST-CA
Default users:
submitter1@example.com
submitter2@example.com
submitter3@example.com
submitter4@example.com
submitter5@example.com
submitter6@example.com