Skip to content

Commit

Permalink
Merge pull request #404 from topcoder-platform/develop
Browse files Browse the repository at this point in the history
June 16 deploy
  • Loading branch information
jmgasper authored Jun 16, 2021
2 parents beb528c + 87355ab commit c0d955f
Show file tree
Hide file tree
Showing 56 changed files with 419 additions and 2,021 deletions.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 1 addition & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ variables:
APP_TITLE: "topcoder x app"
NODE_ENV: development

services:
- mongo

cache:
paths:
- node_modules/
Expand Down Expand Up @@ -60,5 +57,4 @@ deploy_stage:
url: $HEROKU_STAGING_URL
variables:
GIT_STRATEGY: fetch
GIT_SUBMODULE_STRATEGY: recursive
MONGODB_URI: mongodb://mongo:27017/topcoderx'
GIT_SUBMODULE_STRATEGY: recursive
40 changes: 0 additions & 40 deletions DynamoDBMigration.md

This file was deleted.

9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Requirements

- Nodejs 8 is required
- MongoDB 3.2
- DynamoDB
- kafka
- nodemon (for local development)

Expand Down Expand Up @@ -69,10 +69,9 @@ Server should be started at port 80.
Follow the below steps to deploy the app to heroku
1. `heroku login`
2. `heroku create`
3. `heroku addons:create mongolab`
4. `heroku config:set NPM_CONFIG_PRODUCTION=false` so that heroku will install dev dependencies
5. `git push heroku master` or `git push heroku develop:master` to deploy develop branch
6. `heroku open` to load the app on browser
3. `heroku config:set NPM_CONFIG_PRODUCTION=false` so that heroku will install dev dependencies
4. `git push heroku master` or `git push heroku develop:master` to deploy develop branch
5. `heroku open` to load the app on browser

Note: heroku domain should match subdomain of topcoder-dev or topcoder depending upon target topcoder environment

Expand Down
2 changes: 1 addition & 1 deletion TopcoderXDeploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Topcoder-X comprises 3 pieces:
* Topcoder-X Processor that handles the messages created by the receiver. The processor handles the interactions with the Topcoder platform, via the Topcoder challenge API, and it also handles adding comments back to Github / Gitlab when things are updated on the Topcoder challenge.
* Topcoder-X UI that allows copilots and others to manage the Topcoder-X integrations with Github and Gitlab projects. The user can add new Github and Gitlab integrations, including setting up default webhooks and labels for issues, all through the UI.

All 3 pieces will be configured to use the same MongoDB and Kafka installations.
All 3 pieces will be configured to use the same DynamoDB and Kafka installations.


## DynamoDB
Expand Down
2 changes: 2 additions & 0 deletions configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ The following config parameters are supported, they are defined in `src/config.j
|IS_LOCAL | Use Amazon DynamoDB Local or server. |true |
|AWS_CONNECTION_TIMEOUT | The timeout used to check if the app is healthy. |10000 |
|TC_LOGIN_URL | TC login url | |
|DYNAMODB_WAIT_TABLE_FOR_ACTIVE_TIMEOUT | Dynamodb wait for active timeout |10 minutes |


## GitHub OAuth App Setup

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"parse-domain": "^2.1.2",
"shortid": "^2.2.8",
"ssl-express-www": "^3.0.3",
"superagent": "^3.6.0",
"superagent": "^6.1.0",
"superagent-promise": "^1.1.0",
"typescript": "~2.3.3",
"uuid": "^3.3.2",
Expand Down
37 changes: 0 additions & 37 deletions scripts/mongodb-migration/README.MD

This file was deleted.

25 changes: 0 additions & 25 deletions scripts/mongodb-migration/config/default.js

This file was deleted.

28 changes: 0 additions & 28 deletions scripts/mongodb-migration/constants.js

This file was deleted.

65 changes: 0 additions & 65 deletions scripts/mongodb-migration/create-empty-tables.js

This file was deleted.

67 changes: 0 additions & 67 deletions scripts/mongodb-migration/dynamodb/db-helper.js

This file was deleted.

Loading

0 comments on commit c0d955f

Please sign in to comment.