An Angular seed repo for hackathons
- In a new terminal window, fork https://github.com/joeldenning/openmrs-esm-patient-dashboard
npm install
- Modify dashboard-widgets.js and add the following to the
patientDashboardWidgets
array:() => System.import('@hackathon/dashboard-widget'),
. You should name your widget something besidesdashboard-widget
. For example, name it@hackathon/vitals
- Make a pull request to https://github.com/joeldenning/openmrs-esm-patient-dashboard with your new widget
- Fork and/or clone this repo (https://github.com/joeldenning/openmrs-esm-root-config)
npm install
ng serve --publicHost https://localhost:4200 --disable-host-check --port 4200 --ssl
- Now go to https://openmrs-spa.org/openmrs/spa/login. Run the following commands in browser console:
importMapOverrides.addOverride('@hackathon/dashboard-widget', 'https://localhost:4200/main.js')
- Now trust all insecure localhost requests. In Firefox, you'll have to trust the certificate individually by going to https://localhost:8085/hackathon-seed.js.
- Refresh browser
- Login
- You should see your widget in the patient dashboard