-
This is a boilerplate for creating Vue Open Web Apps in OpenMRS. My react-redux boilerplate project is here
-
Created using vue cli 3
- Update public/manifest.webapp
- rename deploy-example.sh to deploy.sh and add openmrs server details. You can use scp here to deploy on server. This copies the dist folder over to the owa folder on server except the manifest.webapp file. Hence, deploy it the conventional way for the first time as zip file so that manifest.webapp can be updated by openmrs or manually create the manifest.webapp file.
- See src/services/patientServices.js to see how to access openmrs resources. Use baseURL: ContextService.getManifest().openmrs.href if required.
- See src/components/HelloPatient.vue to see how it all fits together.
- see vue.config.js for additional configurations if required.
yarn install
yarn run serve
yarn run build
yarn run deploy
yarn run lint
yarn run test:unit