Skip to content

Bahmni-HWC/bahmni-lab-frontend

 
 

Repository files navigation

Bahmni Lab Entry App

Bahmni Lab Entry Micro Frontend build using OMRS 3.x

Badges


Bahmni Lab Entry GHA

Build and Publish Badges Badges Badges

Overview


Built With

Installation


Prerequisites

Setup

  1. Clone the bahmni-lab-frontend repo.
git clone https://github.com/bahmni/bahmni-lab-frontend.git
  1. Install dependencies in the root directory of the repo.
yarn install
  1. Add required OpenMRS apps in spa-build-config with the specific version.

  2. Builds the OpenMRS appshell, assembles the built OpenMRS modules and combines Bahmni Lab application and assembled OpenMRS modules

yarn build:appshell
  1. Assembles the OpenMRS modules and combines Bahmni Lab application and assembled OpenMRS modules
yarn build:assemble
  1. Build the dist folder
yarn build
  1. Copy OpenMRS modules to dist
yarn build:dist

Setup for local development

  1. Execute the below command to bring up the application in port 8200.
yarn bahmni 

Note :

  • To use additional OpenMRS micro-frontends, add them in dev-importmap pointing to the CDN.
  • Make sure --config-url points to the port where served files reside.
  • The --backend points to OpenMRS
  1. To add custom OpenMRS apps to the application
  • Add folder containing build files of the custom OpenMRS application to omrs-apps. Ensure that the folder name follows the convention - openmrs-esm-app name-version number
  • Check-in the omrs-apps folder to repo until the PR gets merged in OpenMRS.
  • Update dev-importmap to point to locally served omrs-apps/openmrs-esm-app name-version number/openmrs-esm-app name.js
  • Update the workflow to copy omrs-apps to dist folder after yarn build:dist command.
run: cp -R omrs-apps/ dist/
  • Delete the above command from workflow and checked-in omrs-apps folders once the PR is merged in OpenMRS.

Docker Images


  • Latest image of Bahmni Lab Entry can be pulled from here.

About

Bahmni lab app using OpenMRS 3.x MF app shell

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.8%
  • TypeScript 8.0%
  • Other 0.2%