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.
| PORT | the port the application will listen on | 80 |
61
-
| API_VERSION | the API version | v1 |
62
-
| LOG_LEVEL | the log level | info |
63
-
| MONGODB_URI | the MongoDB URI | mongodb://localhost:27017/topcoderx |
64
-
| PASSWORD_HASH_SALT_LENGTH | the password hash salt length | 10 |
65
-
| SESSION_SECRET | the session secret | kjsdfkj34857 |
66
-
| GITHUB_CLIENT_ID | the GitHub client id ||
67
-
| GITHUB_CLIENT_SECRET | the GitHub client secret ||
68
-
| GITLAB_CLIENT_ID | the GitLab client id ||
69
-
| GITLAB_CLIENT_SECRET | the GitLab client secret ||
70
-
| WEBSITE | used as base to construct various URLs |http://topcoderx.topcoder-dev.com/|
71
-
72
-
| GITLAB_API_BASE_URL | The Gitlab API base URL |https://gitlab.com/api/v4|
73
-
74
-
| TC_LOGIN_URL | URL to do TopCoder login ||
75
-
| TC_USER_PROFILE_URL | URL to to call TopCoder API to get profile from token |https://accounts.topcoder-dev.com/member?retUrl=http:%2F%2Ftopcoderx.topcoder-dev.com%2Fapi%2Fv1%2Ftclogin|
76
-
|TOPIC | kafka topic||
77
-
|KAFKA_OPTIONS | kafka options||
78
-
79
-
Other are just constants which don't need to be changed unless modified in code level.
80
-
81
-
## FE Configs
82
-
83
-
The frontend config file contains following variables to be configured in `src/front/config.js`
| 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 |
14
+
| 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 ||
19
+
| WEBSITE | used as base to construct various URLs |http://topcoderx.topcoder-dev.com/|
20
+
| 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||
26
+
27
+
## GitHub OAuth App Setup
28
+
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,
34
+
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,
36
+
these should be set to GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET environment variables
37
+
38
+
## GitLab OAuth App Setup
39
+
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:
0 commit comments