Graphql api for storing clinical trials statuses
-
cd clinical-trials-status-store
-
docker-compose up --build
-
Navigate to http://0.0.0.0:5000/graphiql
- Then run query:
query { allInstitutions { nodes { id orgName orgType lateReportCount readyForReportCount lateReportRate trialsByOrgId { nodes { id completionDate completionStatus resultsReportDate isLate readyForReport } } } } }
- Then run query:
-
npm install -g graphql-cli
-
Run with docker
-
graphql init
-
graphql get-schema
Modify (but don't commit) the .env file to have better postgres password (if it's exposed) and make sure the restart behavior is configured to re-run the scraper at the desired interval.