This Single Page Application made with React and TypeScript is one UI component of Open Hospital. This project depends on the Core component for the business logic and the data abstraction layer. This is an alternative user interface than OH GUI based on Java Swing.
This project is based on React. To learn React, check out the React documentation.
To install the project dependencies, issue:
- npm i
It has to be done before any of the following activities
You can run a development build of the application by issuing:
- npm start
To run unit tests, issue:
- npm test
For running the Cypress e2e tests, we need to use two different processes. One for serving the app (process #1) and one for running the Cypress Test Runner (process #2). You can launch it by issuing the following commands in two different intances of your terminal:
//process #1- npm start//process #2- npm run cypress:open
Once the app is compiled and served, and the Cypress Test Runner is launched, click on Run all specs
You can find the contribution guidelines in the Open Hospital wiki.
A list of open issues is available on Jira.