Skip to content

Commit

Permalink
issue #72
Browse files Browse the repository at this point in the history
Signed-off-by: EkaterinaIvanishcheva <[email protected]>
  • Loading branch information
EkaterinaIvanishcheva committed Jul 16, 2024
1 parent d9f2b54 commit 8592721
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Documentation/adding-new-profile.md
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.

0 comments on commit 8592721

Please sign in to comment.