generated from amosproj/amos202Xss0Y-projname
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: EkaterinaIvanishcheva <[email protected]>
- Loading branch information
1 parent
d9f2b54
commit 8592721
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Adding a new profile to the application | ||
|
||
As of now, our application contains three profiles (roles): company, tax advisor and bank. Let's say you want to add a new profile (for example, government agency) to the picture. The following components need to be implemented: | ||
|
||
## 1. Additional connector | ||
|
||
* Add a new dockerfile to `src/edc-connector` (for example, `government_connector.Dockerfile`) | ||
* Add a new configuration file to `src/edc-connector/resources/configuration` | ||
|
||
## 2. Additional database space | ||
|
||
* Add a new dockerfile to `src/databse` (for example, `government_database.Dockerfile`) | ||
|
||
## 3. Dedicated frontend | ||
|
||
* Add a new dockerfile to `src/frontend` (for example, `government_frontend.Dockerfile`) | ||
* Add a new participant to the web application to `src/frontend/data/participants.json` and a new user to `src/frontend/data/users.json` | ||
* Adjust API functions and web interface where necessary | ||
|
||
<br> | ||
|
||
<b>The Docker Compose file `docker-compose.yml` needs to be adjusted accordingly.</b> Each of the connectors and frontend pages has their own dedicated ports, so you have to assign different ones to a new profile (for example, bank's connector is using ports `39191-39291` and bank's frontend runs on port `3003`). When adding new functions to certain profiles you need to make sure to use the right ports and environment variables. | ||
|