Categorygithub.com/albert221/mpra
repositorypackage
1.0.0
Repository: https://github.com/albert221/mpra.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

Medicinal products registry API

This is a webserver which exposes a convenient GraphQL endpoint for fetching data from polish register of medicinal products which is a public data from dane.gov.pl.

The new data is fetched every 20 minutes (and this can be changed in code) from the server.

Compilation & usage

To compile, you need to install dependencies by dep ensure (you need Dep) in project's directory. Then, all you have to do is to run go build.

To run the server, you need to provide the MPR_ADDR environment variable to tell the server on what to listen (this can be :8080, for example).

MPR_ADDR=localhost:80 ./app

API

Below screenshot shows all endpoints and fields exposed in the API.

Insomnia screenshot

Contributing

...is welcome! :)