Skip to content

Commit 9c4e19e

Browse files
authored
tomcat updates (#713)
1 parent c244480 commit 9c4e19e

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

.env.prod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
REACT_APP_USE_MOCK_API=false
2+
REACT_APP_ENABLE_PERMISSIONS=true
3+
PUBLIC_URL=/oh-ui
4+
REACT_APP_BASE_PATH=http://localhost:8080/oh-api

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
This is the UI component of [Open Hospital][openhospital]: it contains a web user interface that consists of a React SPA (single page application).
66
This 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/).
1818
To 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

4747
then `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

5559
You 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

122122
it launches application in development mode and starts cypress, in a single process.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"eject": "react-scripts eject",
6969
"cypress:open": "cypress open",
7070
"build:staging": "env-cmd -f .env.staging npm run build",
71+
"build:prod": "env-cmd -f .env.prod npm run build",
7172
"build:gh-pages": "env-cmd -f .env.gh-pages npm run build",
7273
"build:api": "openapi-generator generate -i api/oh.yaml -g typescript-rxjs -c openapi-generator.config.json -o src/generated/",
7374
"clear": "rm -rf ./.cache ./dist ./build",

0 commit comments

Comments
 (0)