...
Code Block | ||
---|---|---|
| ||
git clone https://github.com/openmrs/openmrs-esm-root-config # or whichever frontend repo you want to develop in cd openmrs-esm-root-config npm install npm start -- --https --port 8080 |
- Now go to https://openmrs-spa.org/openmrs/spa/login
- Open the browser console
localStorage.setItem('openmrs:devtools', true)
- Refresh the page. You will now see a floating colored rectangle on the screen. Click on it. A panel will open up
- In the Import Map tab, click on the frontend module that you are working on.
- Modify the URL to be
https://localhost:8080/root-config.js
- Refresh the page.
- Verify that root-config.js is being downloaded from localhost now. You can do this in the Network tab of the browser dev tools.
- Congrats! You're all set up. Try adding a console.log() statement inside of a file and saving the file. Your web browser will refresh and you should see the console.log inside of the browser console.
...
Page Properties | ||
---|---|---|
| ||
|