Skip to content

Albert221/mpra

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published