* Add this code to `./backend/src/main/resources/application.yml` (**Specifying a new port for `gnpis-app`**)
* Add this code to `./backend/src/main/resources/application.yml` (**Specifying a new port for `data-discovery-app`**)
---
spring:
profiles: gnpis-app
cloud.config.name: gnpis
profiles: data-discovery-app
cloud.config.name: data-discovery
security.user:
name: gnpis
name: data-discovery
password: f01a7031fc17
data-discovery:
...
...
@@ -434,25 +434,25 @@ This readme will be useful :
##### `data` folder
* Create a folder called `gnpis` in `./data`, and put the compressed JSON files in it.
* Create a folder called `data-discovery` in `./data`, and put the compressed JSON files in it.
##### `frontend` folder
* Edited the `./frontend/coverage/index.html` file.
* Edited `./frontend/src/app/models/test-model-generators.ts` by adding an `import` and `toGnpisDocument` function.
* Edited `./frontend/src/app/models/test-model-generators.ts` by adding an `import` and `toDataDiscoveryDocument` function.
* Since `GnpIS` and `WheatIS` share the same document structure we created a `gnpis` module in `./frontend/src/app` containing only `gnpis-header` and used the `generic-document` found in `frontend/src/app/urgi-common`, this generic document is common between GnpIS and WheatIS:
* Since `DataDiscovery` and `WheatIS` share the same document structure we created a `data-discovery` module in `./frontend/src/app` containing only `data-discovery-header` and used the `generic-document` found in `frontend/src/app/urgi-common`, this generic document is common between DataDiscovery and WheatIS:
```
gnpis
├── gnpis-header
│ ├── gnpis-header.component.html
│ ├── gnpis-header.component.scss
│ ├── gnpis-header.component.spec.ts
│ └── gnpis-header.component.ts
├── gnpis-document.model.ts
└── gnpis.module.ts
data-discovery
├── data-discovery-header
│ ├── data-discovery-header.component.html
│ ├── data-discovery-header.component.scss
│ ├── data-discovery-header.component.spec.ts
│ └── data-discovery-header.component.ts
├── data-discovery-document.model.ts
└── data-discovery.module.ts
```
```
...
...
@@ -466,7 +466,7 @@ urgi-common
└── ...
```
* Create a `gnpis` file in `./frontend/src/assets` containing the following file:
* Create a `data-discovery` file in `./frontend/src/assets` containing the following file:
-`band.jpg`
-`favicon.ico`
-`logo.png`
...
...
@@ -475,15 +475,15 @@ urgi-common
And edit them as desired.
* Create and edit the environment files in `./frontend/src/environments`:
-`environment.gnpis.prod.ts`
-`environment.gnpis.ts`
-`environment.data-discovery.prod.ts`
-`environment.data-discovery.ts`
* Added `gnpis` configuration in `./frontend/angular.json` file
* Added `data-discovery` configuration in `./frontend/angular.json` file