Skip to content

Commit 44aa781

Browse files
committed
Merge branch 'dev' into feature/rb-with-wp
# Conflicts: # data/demo-data.json # docs/Topcoder-bookings-api.postman_collection.json # src/services/TeamService.js
2 parents d527cdc + c0fca43 commit 44aa781

17 files changed

+1742
-326
lines changed

README.md

Lines changed: 19 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2053,4 +2053,4 @@
20532053
]
20542054
}
20552055
]
2056-
}
2056+
}

0 commit comments

Comments
 (0)