Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.02 KB

SETUP-docker.md

File metadata and controls

29 lines (18 loc) · 1.02 KB

Setup OpenFisca Aotearoa to run in docker

Run the application using Docker

  • Install Docker.
  • Build the docker image: docker build . -t openfisca-aotearoa
  • Run the image: docker run -it -p 5000:5000 openfisca-aotearoa

Serve OpenFisca Aotearoa with the OpenFisca Web API

If you are considering building a web application, you can use the packaged OpenFisca Web API.

To serve the Openfisca Web API locally, run:

openfisca serve --port 5000

To read more about the openfisca serve command, check out its documentation.

You can make sure that your instance of the API is working by requesting:

curl "http://localhost:5000/spec"

This endpoint returns the Open API specification of your API.

🎉 OpenFisca Aotearoa is now served by the OpenFisca Web API! To learn more, go to the OpenFisca Web API documentation