Skip to content

Commit 2021d76

Browse files
authored
Merge pull request #247 from topcoder-platform/dev
[WIP] Next Release
2 parents 1fce5a2 + cf5201f commit 2021d76

16 files changed

+1759
-335
lines changed

README.md

+19-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717

1818
### Steps to run locally
1919

20+
0. Make sure to use Node v12+ by command `node -v`. We recommend using [NVM](https://github.com/nvm-sh/nvm) to quickly switch to the right version:
21+
22+
```bash
23+
nvm use
24+
```
25+
2026
1. 📦 Install npm dependencies
2127

2228
```bash
@@ -38,7 +44,7 @@
3844
INTERVIEW_INVITATION_SENDGRID_TEMPLATE_ID=
3945
INTERVIEW_INVITATION_SENDER_EMAIL=
4046
# Locally deployed services (via docker-compose)
41-
ES_HOST=dockerhost:9200
47+
ES_HOST=http://dockerhost:9200
4248
DATABASE_URL=postgres://postgres:postgres@dockerhost:5432/postgres
4349
BUSAPI_URL=http://dockerhost:8002/v5
4450
```
@@ -157,6 +163,18 @@
157163
Runs the Topcoder TaaS API using nodemon, so it would be restarted after any of the files is updated.
158164
The Topcoder TaaS API will be served on `http://localhost:3000`.
159165

166+
### Working on `taas-es-processor` locally
167+
168+
When you run `taas-apis` locally as per "[Steps to run locally](#steps-to-run-locally)" the [taas-es-processor](https://github.com/topcoder-platform/taas-es-processor) would be run for you automatically together with other services inside the docker container via `npm run services:up`.
169+
170+
To be able to change and test `taas-es-processor` locally you can follow the next steps:
171+
172+
1. Stop `taas-es-processor` inside docker by running `docker-compose -f local/docker-compose.yml stop taas-es-processor`
173+
2. Run `taas-es-processor` separately from the source code. As `npm run services:up` already run all the dependencies for both `taas-apis` and for `taas-es-processor`. The only thing you need to do for running `taas-es-processor` locally is clone the [taas-es-processor](https://github.com/topcoder-platform/taas-es-processor) repository and inside `taas-es-processor` folder run:
174+
- `nvm use` - to use correct Node version
175+
- `npm run install`
176+
- `npm run start`
177+
160178
## NPM Commands
161179

162180
| Command                    | Description |

data/demo-data.json

+14-6
Original file line numberDiff line numberDiff line change
@@ -436,10 +436,14 @@
436436
{
437437
"id": "81f03238-1ce2-4d3d-80c5-5ecd5e7e94a2",
438438
"jobCandidateId": "25787cb2-d876-4883-b533-d5e628d213ce",
439-
"googleCalendarId": "dummyId",
440-
"customMessage": "This is a custom message",
441-
"xaiTemplate": "30-min-interview",
439+
"calendarEventId": "dummyId",
440+
"templateUrl": "interview-30",
442441
"round": 1,
442+
"duration": 30,
443+
"hostName": "John Doe",
444+
"hostEmail": "[email protected]",
445+
"guestNames": ["Customer Test"],
446+
"guestEmails": ["[email protected]"],
443447
"status": "Scheduling",
444448
"createdBy": "57646ff9-1cd3-4d3c-88ba-eb09a395366c",
445449
"updatedBy": null,
@@ -449,10 +453,14 @@
449453
{
450454
"id": "75363f1d-46c3-4261-9c21-70019f90a61a",
451455
"jobCandidateId": "25787cb2-d876-4883-b533-d5e628d213ce",
452-
"googleCalendarId": "dummyId",
453-
"customMessage": "This is a custom message",
454-
"xaiTemplate": "30-min-interview",
456+
"calendarEventId": "dummyId",
457+
"templateUrl": "interview-30",
455458
"round": 2,
459+
"duration": 30,
460+
"hostName": "John Doe",
461+
"hostEmail": "[email protected]",
462+
"guestNames": ["Customer Test"],
463+
"guestEmails": ["[email protected]"],
456464
"status": "Scheduling",
457465
"createdBy": "57646ff9-1cd3-4d3c-88ba-eb09a395366c",
458466
"updatedBy": null,

0 commit comments

Comments
 (0)