44
55This is the UI component of [ Open Hospital] [ openhospital ] : it contains a web user interface that consists of a React SPA (single page application).
66This project depends on the [ API component] [ openhospital-api ] that exposes business logic APIs implemented in the [ Core component] [ openhospital-core ] .
7+ This project is based on React. To learn React, check out the [ React documentation] ( https://reactjs.org/ ) .
78_ This project is still in early stages. For a more mature user interface of Open Hospital, check out the [ GUI project] [ openhospital-gui ] ._
89
910## App architecture
@@ -12,14 +13,13 @@ _This project is still in early stages. For a more mature user interface of Open
1213<img src =" ./docs/app-architecture.png " width =" 70% " height =" 70% " >
1314</div >
1415
15- ## How to install
16+ ## How to install dependencies
1617
17- This project is based on React. To learn React, check out the [ React documentation] ( https://reactjs.org/ ) .
1818To install the project dependencies, issue:
1919
2020 npm i
2121
22- ** It has to be done before any of the following activities **
22+ ** It has to be done before any of the following steps **
2323
2424## How to configure
2525
@@ -46,11 +46,15 @@ then `npm start`
4646
4747then ` docker-compose up database backend && npm start `
4848
49- ## Run local development environment
49+ ## How to build
50+
51+ npm run build:prod
52+
53+ ## How to run local development environment
5054
5155 npm start
5256
53- ## Run full stack environment locally
57+ ## How to run full stack environment locally
5458
5559You can run a full OH2 stack locally using [ Docker] ( https://www.docker.com/ ) (required) using this command:
5660
@@ -109,14 +113,10 @@ You can run a development build of the application by issuing:
109113
110114## How to run unit tests
111115
112- To run unit tests, issue:
113-
114116 npm test
115117
116118## How to launch the e2e tests
117119
118- Run:
119-
120120 npm run e2e
121121
122122it launches application in development mode and starts cypress, in a single process.
0 commit comments