Sav22999 / openhospital-ui

Open Hospital web UI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open Hospital - UI

CI build

This is the UI component of Open Hospital: it contains a web user interface that consists of a React SPA (single page application). This project depends on the API component that exposes business logic APIs implemented in the Core component.
This project is still in early stages. For a more mature user interface of Open Hospital, check out the GUI project.

App architecture

How to build

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

How to launch the application

You can run a development build of the application by issuing:

- npm start

How to run unit tests

To run unit tests, issue:

- npm test

How to launch the e2e tests

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

How to contribute

You can find the contribution guidelines in the Open Hospital wiki.
A list of open issues is available on Jira.

About

Open Hospital web UI


Languages

Language:TypeScript 83.4%Language:SCSS 12.5%Language:JavaScript 3.5%Language:HTML 0.4%Language:CSS 0.1%