-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add API server. #75
Add API server. #75
Conversation
@bfabio if after the build you also add
the docker image size is halved 😄 |
@apiraino Good call |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can only suggest the minor change of keeping the Dockerfile in a sub-directory.
Well done. I was about to implement the same API Project on Loopback but you arrived first. Thanks! |
a73c457
to
49affd3
Compare
I think having it in the root directory it's useful: you notice straight away there's a Docker image you can build. |
a35e291
to
4e93fda
Compare
Ciao @bfabio sto testando una soluzione basata su lambda. Grazie per la collaborazione, puoi comunque pubblicare il docker su un tuo repo e fare riferimento a questo per i dati |
Add a simple API server exposing the JSON data via HTTP.
The Dockerfile builds a small (~8MiB) stateless image (based on the data at
dati-json/
) which can be easily scaled up, fe. with Kubernetes replicas.From DockerHub:
$ docker run -p8000:8000 bfabio/covid-19
Edit:
Temporarly available at https://covid-19.zland.org/
fe. https://covid-19.zland.org/regioni/Lombardia
API documentation