In this tutorial, we will:
- build a 3.x distribution from scratch
- add some basic modules to the distribution
- run the distribution as a standalone application
- connect with a running iSantePlus instance
http://o3-dev.docs.openmrs.org/#/main/distribution
- Install Docker: https://docs.docker.com/engine/install/ubuntu/
- Clone this repository:
git clone https://github.com/IsantePlus/iSantePlus3x.git
mkdir iSantePlus3x
cd iSantePlus3x
This command uses the openmrs
Node.js package that can be found here: https://www.npmjs.com/package/openmrs (published package) and https://github.com/openmrs/openmrs-esm-core/tree/master/packages/tooling/openmrs (code)
npx openmrs build --spa-path /isanteplus --api-url https://isanteplus.sedish-haiti.org/openmrs --config-url config.json --importmap importmap.json
npx openmrs build --config-url config.json --importmap importmap.json
npx openmrs assemble --config ./build-config.json --mode config
config.json
{}
docker-compose up -d