Skip to content
This repository has been archived by the owner on Apr 10, 2019. It is now read-only.

arkhn/pyrog-server

Repository files navigation

Pyrog Server

Arkhn GitHub license

This is a web server for Pyrog.

Install and run in development

Dependencies

Simply run

yarn install
env $(cat .env.staging) docker-compose up -d prisma
yarn run prisma deploy

This will install all required node dependencies, setup 2 Docker containers (1 Prisma, 1 Postgres), 1 Docker volume (which will persistently contain all data collected in Pyrog and our mock data) and initiate our Postgres database schema with our GraphQL datamodel.

Static files and mock data

FHIR resources json descriptions are needed for this server to run successfully. Download them manually here, or run this command:

wget https://arkhn.org/pyrog_dev_static.zip
unzip pyrog_dev_static.zip
rm pyrog_dev_static.zip

This zip file also contains some mock data, among which Mimic's database schema and a partial mapping of Mimic into FHIR. So as to use this data, you can populate your local Postgres database with our mapping:

yarn run prisma import --data ./static/pyrog_mimic_mapping.zip

This will create a user with login [email protected] and password secret42 which you can later use in the client.

Run

Ensure your docker containers are running:

docker ps
docker-compose up -d prisma

Then, you can simply start this server with

yarn start

You can easily test your server using GraphQL's Playground:

yarn playground

Start contributing

We have reported several issues with the label Good first issue which can be a good way to start! You can also join our Slack to contact us if you have trouble or questions :)

If you're enthusiastic about our project, ⭐ it to show your support! ❤️

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •