Albert221 / mpra

Medicinal Products Registry API, from dane.gov.pl, with GraphQL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Medicinal Products Registry API

FOSSA Status

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.

GraphQL Playground screenshot

Compilation & usage

You can run this project using Docker or Go (1.14 or newer).

Docker
git clone https://github.com/Albert221/mpra.git mpra && cd mpra
docker build --tag mpra:latest .
docker run --publish 8080:8080 mpra:latest
Go
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)

Contributing

...is welcome! :)

License

FOSSA Status

About

Medicinal Products Registry API, from dane.gov.pl, with GraphQL.

License:MIT License


Languages

Language:Go 75.3%Language:HTML 20.8%Language:Dockerfile 3.9%