This is a webserver that exposes a convenient GraphQL endpoint for fetching data from polish register of medicinal products which is a public data from dane.gov.pl.
You can run this project using Docker or Go (1.14 or newer).
git clone https://github.com/Albert221/mpra.git mpra && cd mpra
docker build --tag mpra:latest .
docker run --publish 8080:8080 mpra:latest
git clone https://github.com/Albert221/mpra.git mpra && cd mpra
go get github.com/markbates/pkger/cmd/pkger
pkger
go build -o mpra .
./mpra
You can set few arguments using the command line, use ./mpra -help
for help:
$ ./mpra -help
Usage of ./mpra:
-dataset string
path to the file which the dataset will be cached to (default "dataset.xml")
-host string
hostname to listen on
-port string
port to listen on (default "8080")
-refresh duration
period every which the dataset will be refreshed (default 1h0m0s)
...is welcome! :)