Implementing a GraphQL API for the DIVI Intensivregister's data by using the Hasura GraphQL engine.
The data used come from DIVI-Intensivregister (https://www.intensivregister.de/).
virtualenv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
npm install
wget -O hasura https://github.com/hasura/graphql-engine/releases/download/v2.0.0-alpha.6/cli-hasura-darwin-amd64
chmod +x hasura
docker-compose up -d
python3 import.py
The web interface can be reached under http://localhost:8080.
After the initial import run the following commands to apply the metadata. Also run to apply changes to the metadata.
./hasura metadata apply
After changes to the metadata via the console or API, they can be exported:
./hasura metadata export
- Hasura console: http://localhost:8080
- React.js Application: http://localhost:3000