Skip to content

Commit 0cb4016

Browse files
thicham43Hicham
andauthored
docs: enrich README.md (#1)
Co-authored-by: Hicham <[email protected]>
1 parent 7731492 commit 0cb4016

18 files changed

+73
-2099
lines changed

.env

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,26 @@
11
# images
22

33
## apps
4-
SJS_IMAGE=aphpid/cohort360-queryexecutor:latest
4+
QUERY_EXECUTOR_IMAGE=aphpid/cohort360-queryexecutor:latest
55
BACK_IMAGE=aphpid/cohort360-backend:latest
66
PORTAIL_IMAGE=aphpid/cohort360-administrationportal:latest
77
FRONT_IMAGE=aphpid/cohort360-frontend:latest
88

99
## 3rd party services
1010
FHIR_IMAGE=hapiproject/hapi:latest
11-
JWT_IMAGE=harbor.eds.aphp.fr/cohort360/jwt-server:mock
12-
KEYCLOAK_IMAGE=bitnami/keycloak:24.0.5
1311
REDIS_IMAGE=redis:7.2.5
1412
PSQL_CLIENT_IMAGE=jbergknoff/postgresql-client
1513

1614

1715
# network
18-
SJS_LOCAL_PORT=9804
16+
QUERY_EXECUTOR_LOCAL_PORT=9804
1917
BACK_LOCAL_PORT=8000
2018
PORTAIL_LOCAL_PORT=9807
2119
FRONT_LOCAL_PORT=9808
2220

2321
FHIR_LOCAL_PORT=8081
2422
REDIS_LOCAL_PORT=9801
2523
PG_LOCAL_PORT=9802
26-
JWT_LOCAL_PORT=8883
27-
KEYCLOAK_LOCAL_PORT=9090
2824

2925
# misc
3026
HEALTHCHECK_PERIOD=5s

.gitmodules

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
[submodule "Cohort360-AdministrationPortal"]
2+
path = Cohort360-AdministrationPortal
3+
url = https://github.com/aphp/Cohort360-AdministrationPortal.git
14
[submodule "Cohort360-Back-end"]
2-
path = Cohort360-Back-end
3-
url = git@github.com:aphp/Cohort360-Back-end.git
5+
path = Cohort360-Back-end
6+
url = https://github.com/aphp/Cohort360-Back-end.git
47
[submodule "Cohort360-FrontEnd"]
58
path = Cohort360-FrontEnd
6-
url = [email protected]:aphp/Cohort360-FrontEnd.git
7-
[submodule "Cohort360-AdministrationPortal"]
8-
path = Cohort360-AdministrationPortal
9-
url = [email protected]:aphp/Cohort360-AdministrationPortal.git
9+
url = https://github.com/aphp/Cohort360-FrontEnd.git
1010
[submodule "Cohort360-QueryExecutor"]
1111
path = Cohort360-QueryExecutor
12-
url = https://github.com/aphp/Cohort360-QueryExecutor.git
12+
url = https://github.com/aphp/Cohort360-QueryExecutor.git
1313
[submodule "fakedata/synthea"]
14-
path = fakedata/synthea
15-
url = https://github.com/synthetichealth/synthea.git
14+
path = fakedata/synthea
15+
url = https://github.com/synthetichealth/synthea.git

Cohort360-Back-end

Submodule Cohort360-Back-end updated 146 files

Cohort360-FrontEnd

Submodule Cohort360-FrontEnd updated 343 files

Cohort360-QueryExecutor

README.md

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,55 @@
33

44
## Quick start
55

6-
After cloning this respository:
6+
### Get the code
7+
8+
Start by cloning this repository from a [stable release tag](https://github.com/aphp/Cohort360/releases):
9+
10+
```
11+
git clone --depth 1 --branch <some-release-tag> https://github.com/aphp/Cohort360.git
12+
```
13+
14+
Fetch the corresponding submodules repositories:
715
```
8-
git submodule init
9-
git submodule update
16+
git submodule update --init --recursive --remote
1017
```
1118

12-
With fake data generation
19+
### Spin it up
20+
21+
Generate fake data with Synthea (for first time execution)
1322
```
1423
docker compose -f docker-compose.yaml -f docker-compose.fakedata.yaml up
1524
```
1625

17-
Without fake data generation
26+
#### Track fake data generation
27+
28+
Soon after you can go to [http://localhost:8080](http://localhost:8080) to check up the initialization progress
29+
> it may be very long if a lot of fake data patients are generated (default 200 records).
1830
31+
Run without generating fake data (for later executions)
1932
```
2033
docker compose --env-file .env up
2134
```
2235

23-
Soon after you can go to [http://localhost:8080](http://localhost:8080) to check up the initialization progress (it may be very long if a lot of fake data patients are generated (default 200)).
24-
25-
Then you can go to the Cohort 360 application with the following urls :
26-
- main application : http://localhost:9808
27-
- admin portal : http://localhost:9807
28-
- keycloak authentication: http://172.28.0.20:8080
36+
### About fake data
2937

30-
The default credentials are admin:admin
38+
The base instance contains no data you can use [Synthea](https://github.com/synthetichealth/synthea) to generate some fake data and upload them to the FHIR instance.
3139

40+
After adding new organizations in FHIR, you **must manually** synchronize them in the backend of the application, for that:
41+
* Go to `http://localhost:8000/docs` default URL of the Django backend application
42+
* Login to acquire an access token using the endpoint `/auth/login/`
43+
* Make a request to the endpoint `PUT /fhir-perimeters/_sync/`
3244

33-
## Fake data
45+
You should then have the patient data and organization available in the application.
3446

35-
The base instance contains no data you can use [Synthea](https://github.com/synthetichealth/synthea) to generate some fake data and upload them to the FHIR instance.
47+
The current Docker Compose sets up an initialization Docker to populate the data it will proceed to generate data with **Synthea** (using a quick fixed fork) and synchronize the perimeters.
3648

37-
After adding new Organizations in FHIR, you must manually synchronize them in the backend of the application, for that
38-
go to `http://localhost:8000/docs` (default url of the backend application), login (using the oidc secret found in the file `env/django.env` `OIDC_CLIENT_SECRET_1`) and then execute the query of the endpoint `PUT /fhir-perimeters/_sync/`. You should then have the patient data and organization available in the application.
3949

40-
The current docker compose sets up an initialization docker to populate the data it will proceed to generate data with synthea (using a quick fixed fork) and synchronize the perimeters.
50+
## Give it a try
4151

52+
Then you can visit different applications with the following URLs:
53+
- Main **Cohort360** app : http://localhost:9808
54+
- **Administration Portal** app : http://localhost:9807
4255

56+
> (i) The default credentials are **`admin`**:**`admin`**
4357

conf/front.config.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,15 @@
157157
},
158158
"system": {
159159
"codeDisplayJWT": "ArrowUp,ArrowDown,ArrowLeft,ArrowRight,a,z,e,r,t,y,Enter",
160+
"displayJwtLogin": true,
161+
"displayOidcLogin": false,
160162
"oidc": {
161-
"clientId": "cohort360",
162-
"issuer": "http://172.28.0.20:8080/realms/cohort/protocol/openid-connect/auth",
163-
"redirectUri": "http://localhost:9808",
164-
"responseType": "code",
165-
"scope": "openid",
166-
"state": "mlTPASu3bwdFmFUSK4G4ImecrsKW9pQ7SDdf7uB"
163+
"clientId": "",
164+
"issuer": "",
165+
"redirectUri": "",
166+
"responseType": "",
167+
"scope": "",
168+
"state": ""
167169
},
168170
"wsProtocol": "ws://"
169171
}

0 commit comments

Comments
 (0)