This is a fork repository from Facebook create-react-app. It has been customized to generate boilerplate Openmrs Open Web Apps(OWAs) with a single line of command. Resulting OWA will be using openmrs-react-components library which includes common web UI components such as headers, footers, buttons, etc.
You do NOT have to clone/download this repository in order to create an openmrs ReactJS app. Just run the following command anywhere in your computer.
npx create-react-app test-app --scripts-version openmrs-react-scripts
cd test-app
cp .env.skeleton .env
npm start
Note: You need to edit .env file by providing your OpenMRS server information. This is necessary that some react components communicate with OpenMRS server to fetch values.
- REACT_APP_SERVER_ADDRESS=[OpenMRS Server Address Goes Here]
- REACT_APP_SERVER_CONTEXT_PATH=[OpenMRS Server Context Path Goes Here]
npx create-react-app test-app --scripts-version openmrs-react-scripts-example
cd test-app
cp .env.skeleton .env
npm start
...
...
...