You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ReadMe.md
+12-18Lines changed: 12 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@
5
5
- nodejs https://nodejs.org/en/ (v8)
6
6
- Kafka
7
7
- Informix
8
-
- Postgres
9
8
- Docker, Docker Compose
10
9
11
10
## Configuration
@@ -25,9 +24,15 @@ The following parameters can be set in config files or in env variables:
25
24
- UPDATE_PROJECT_TOPIC: update project Kafka topic, default value is 'project.action.update'
26
25
- DELETE_PROJECT_TOPIC: delete project member Kafka topic, default value is 'project.action.delete'
27
26
- INFORMIX: Informix database configuration parameters, refer `config/default.js` for more information
28
-
- POSTGRES: Postgres database configuration parameters, refer `config/default.js` for more information
27
+
- AUTH0_URL: AUTH0 URL, used to get M2M token
28
+
- AUTH0_PROXY_SERVER_URL: AUTH0 proxy server URL, used to get M2M token
29
+
- AUTH0_AUDIENCE: AUTH0 audience, used to get M2M token
30
+
- TOKEN_CACHE_TIME: AUTH0 token cache time, used to get M2M token
31
+
- AUTH0_CLIENT_ID: AUTH0 client id, used to get M2M token
32
+
- AUTH0_CLIENT_SECRET: AUTH0 client secret, used to get M2M token
33
+
- PROJECTS_API: the topcoder projects API
29
34
30
-
generally, we only need to update INFORMIX_HOST, KAFKA_URLand POSTGRES_URL via environment variables, see INFORMIX_HOST, KAFKA_URL and POSTGRES_URL parameter in docker/sample.api.env
35
+
generally, we only need to update INFORMIX_HOST, KAFKA_URL, PROJECTS_API and M2M-related configuration via environment variables, see the parameters in docker/sample.api.env
31
36
32
37
There is a `/health` endpoint that checks for the health of the app. This sets up an expressjs server and listens on the environment variable `PORT`. It's not part of the configuration file and needs to be passed as an environment variable
33
38
@@ -68,17 +73,6 @@ We will use Topcoder Informix database setup on Docker.
68
73
69
74
Go to `docker-ifx` folder and run `docker-compose up`
- Modify `dbConfig.masterUrl` in `config/default.json`
79
-
- Run command `npm install` to install dependencies
80
-
- Run command `npm run sync:db` to create tables on Postgres database
81
-
82
76
## Local deployment
83
77
- Given the fact that the library used to access Informix DB depends on Informix Client SDK.
84
78
We will run the application on Docker using a base image with Informix Client SDK installed and properly configured.
@@ -88,15 +82,15 @@ For deployment, please refer to next section 'Local Deployment with Docker'
88
82
89
83
To run the Legacy Project Processor using docker, follow the steps below
90
84
91
-
1. Make sure that Kafka, Postgres and Informix are running as per instructions above.
85
+
1. Make sure that Kafka, Project Service and Informix are running as per instructions above.
92
86
93
87
2. Go to `docker` folder
94
88
95
-
3. Rename the file `sample.api.env` to `api.env` And properly update the IP addresses to match your environment for the variables : KAFKA_URL, INFORMIX_HOST and POSTGRES_URL( make sure to use IP address instead of hostname ( i.e localhost will not work)).Here is an example:
89
+
3. Rename the file `sample.api.env` to `api.env` And properly update M2M-related configuration and the IP addresses to match your environment for the variables : KAFKA_URL, INFORMIX_HOST and PROJECTS_API ( make sure to use IP address instead of hostname ( i.e localhost will not work)).Here is an example:
4. Once that is done, go to run the following command
@@ -109,7 +103,7 @@ docker-compose up
109
103
110
104
## Running e2e tests
111
105
You need to run `docker-compose build` if modify source files.
112
-
Make sure run `docker-compose up` in `docker` folder once to make sure application will install dependencies and run successfully with Kafka, Postgres and Informix.
106
+
Make sure run `docker-compose up` in `docker` folder once to make sure application will install dependencies and run successfully with Kafka and Informix.
113
107
114
108
To run e2e tests
115
109
Modify `docker/docker-compose.yml` with `command: run test`(uncomment it) and run `docker-compose up` in `docker` folder
0 commit comments