The DHIS2 visualizer app is an API service that allows you to get visualization images from DHIS2 visualizations.
To set up the server, download the latest release. Then create copy the .env.example
file to .env
and change the required environment variables.
VISUALIZER_API_MOUNT_POINT
: Endpoint at which the server will be accessibleVISUALIZER_PORT
: Port at which the service should be exposedVISUALIZER_DHIS2_MEDIATOR_URL
: URL to the DHIS2 mediator
This requires at least Node
version 16.x
.
Run
yarn install --prod
To get required dependencies and run the app using the command:
yarn start
This requires at least Docker Engine
version 23.0.5
and Docker Compose Plugin
version v2.15.1
.
To run the app using docker there are 2 ways:
First, build the docker image
docker build . <image_name>:<app-version>
And then run the app container using:
docker run <image_name>:<app-version> --port 3000:<port>
You can set up the project by cloning into your local machine.
Get the required dependencies by running:
yarn install
Copy .env.example
to .env
file and change the variables as required.
To run the server in development mode use:
yarn dev
To build the app run:
yarn build
This will create a zipped build in the build
folder