Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@openmrs/esm-devtools

Package Overview
Dependencies
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openmrs/esm-devtools

Dev tools for frontend devs using OpenMRSS

Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
12
9.09%
Maintainers
6
Weekly downloads
 
Created
Source

openmrs-esm-devtools

Build Status

An in-browser javascript module that helps developers view and configure OpenMRS frontend

Running

After cloning or downloading this repo to your computer:

  • Install modules by running: npm install

  • Run: npm start -- --port <PORT>

Development

In order to contribute to openmrs-esm-devtools without installing a local instance of OpenMRS, there's need to replace the url of openmrs-esm-devtools in the import map of the remote OpenMRS instance, to the one running locally on your computer. This can be achieved using importMapOverrides.

However, the setup depends on whether or not the remote OpenMRS instance is running behind HTTPS:

  • Remote OpenMRS instance running with just HTTP For this development workflow, after running npm install and npm start -- --port <PORT>, simply open the OpenMRS Single SPA default page on your browser, then open the console and key in: importMapOverrides.addOverride('@openmrs/devtools','https://localhost:<PORT>/devtools.js');

  • Remote OpenMRS instance running behind HTTPS

For this setup, it is required to add a browser exception to allow invalid certificates for resources loaded from localhost. For Chrome browsers, make sure to enable the flag chrome://flags/#allow-insecure-localhost. For Firefox, open the url https://localhost:<PORT> and add an exception for the certificate.

And finally use the new alias: npm run start-https -- --port <PORT>

FAQs

Package last updated on 08 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts