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
{{ message }}
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -73,11 +73,12 @@ Note: heroku domain should match subdomain of topcoder-dev or topcoder depending
73
73
74
74
## Verification
75
75
76
-
- run `npm serve` to start the app
76
+
- run `npm run serve` to start the app
77
77
- go to topcoderx.topcoder-dev.com and it will redirect to Topcoder login page, after successful login it will redirect back to Topcoder x app.
78
78
- go to settings by clicking username at top right corner
79
79
- setup both git provider to authorize topcoder-x to manage your repo on behalf of you
80
80
- go to project management and create/edit projects, create hook and label
81
81
- go to git access control menu and check list of groups have authorized
82
-
- click get link button to get the shareable link which can be used by topcoder member to self assign to the repository.
82
+
- click get link button to get the shareable link which can be used by topcoder member to self assign to the repository. Click to icon next to url to copy to clipboard.
83
+
- normal member cannot use the application, allowed roles are configured in API, if normal user tries to access the app, error is shown in login page.
| PORT | the port the application will listen on | 80 |
11
-
| API_VERSION | the API version | v1 |
12
-
| LOG_LEVEL | the log level | info |
13
-
| MONGODB_URI | the MongoDB URI | mongodb://localhost:27017/topcoderx |
8
+
| PORT | the port the application will listen on | 80 |
9
+
| API_VERSION | the API version | v1 |
10
+
| LOG_LEVEL | the log level | info |
14
11
| SESSION_SECRET | the session secret | kjsdfkj34857 |
15
-
| GITHUB_CLIENT_ID | the GitHub client id ||
16
-
| GITHUB_CLIENT_SECRET | the GitHub client secret ||
17
-
| GITLAB_CLIENT_ID | the GitLab client id ||
18
-
| GITLAB_CLIENT_SECRET | the GitLab client secret ||
12
+
| GITHUB_CLIENT_ID | the GitHub client id |No default - needs to be set up using the instructions below|
13
+
| GITHUB_CLIENT_SECRET | the GitHub client secret |No default - needs to be set up using the instructions below |
14
+
| GITLAB_CLIENT_ID | the GitLab client id |No default - needs to be set up using the instructions below |
15
+
| GITLAB_CLIENT_SECRET | the GitLab client secret |No default - needs to be set up using the instructions below |
19
16
| WEBSITE | used as base to construct various URLs |http://topcoderx.topcoder-dev.com/|
20
17
| GITLAB_API_BASE_URL | The Gitlab API base URL |https://gitlab.com|
21
-
|TOPIC | kafka topic||
22
-
|KAFKA_OPTIONS | kafka options||
23
-
| HOOK_BASE_URL | The generated ngrok url of receiver service|
24
-
| TOPCODER_ENV | The topcoder environment to use, can support 'dev' or 'prod' | 'dev' |
25
-
|LABELS| Labels we are going to add to the repository in the form of array of object with `name` and `colo` property. color should be hex code without hash||
18
+
| MONGODB_URI | The MongoDB URI. This needs to be the same MongoDB used by topcoder-x-receiver, topcoder-x-processor, and topcoder-x-site | mongodb://127.0.0.1:27017/topcoderx |
19
+
|TOPIC | The Kafka topic where events are published. This must be the same as the configured value for topcoder-x-processor||
20
+
|KAFKA_OPTIONS | Kafka connection options||
21
+
|KAFKA_HOST | The Kafka host to connect to| localhost:9092 |
22
+
|KAFKA_CLIENT_CERT | The Kafka SSL certificate to use when connecting| Read from kafka_client.cer file, but this can be set as a string like it is on Heroku |
23
+
|KAFKA_CLIENT_CERT_KEY | The Kafka SSL certificate key to use when connecting| Read from kafka_client.key file, but this can be set as a string like it is on Heroku|
24
+
| HOOK_BASE_URL | The base URL of the topcoder-x-receiver, used when adding webhooks automatically to repositories ||
25
+
| TOPCODER_ENV | The topcoder environment to use, can support 'dev' or 'prod' | 'dev' |
26
+
|LABELS| Labels we are going to add to the repository in the form of array of object with `name` and `color` property. Color should be hex code without hash||
26
27
27
28
## GitHub OAuth App Setup
28
29
29
-
- login into github.com
30
-
- click the upper right avatar, then click `Settings`
31
-
- click the left panel --> Developer settings --> OAuth Apps
32
-
- click the `Register a new application`, fill in the fields,
33
-
note that the `Authorization callback URL` should be the deployed web site,
30
+
These instructions should be used to generate the GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET values for configuration
31
+
32
+
- Login into github.com
33
+
- Click the upper right avatar, then click `Settings`
34
+
- Click the left panel --> Developer settings --> OAuth Apps
35
+
- Click the `Register a new application`, fill in the fields,
36
+
note that the `Authorization callback URL` should be the deployed topcoder-x web site,
34
37
for local deployment, it should be `http://topcoderx.topcoder-dev.com`
35
-
-after creating the OAuth app, you can see its client id and client secret,
38
+
-After creating the OAuth app, you can see its client id and client secret,
36
39
these should be set to GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET environment variables
37
40
38
41
## GitLab OAuth App Setup
39
42
40
-
- login into gitlab.com
41
-
- click the upper right avatar, then click `Settings`
42
-
- click the `Applications` tab
43
-
- enter application name, e.g. `Topcoder-x`
44
-
- for Redirect URI, enter two callback URLs, one callback URL per line, so there are two lines:
43
+
These instructions should be used to generate the GITLAB_CLIENT_ID and GITLAB_CLIENT_SECRET values for configuration
44
+
45
+
46
+
- Login into gitlab.com
47
+
- Click the upper right avatar, then click `Settings`
48
+
- Click the `Applications` tab
49
+
- Enter an application name, e.g. `Topcoder-X`
50
+
- For Redirect URI, enter two callback URLs, one callback URL per line, so there are two lines:
0 commit comments