- Nodejs(v12+)
- Kafka
Configuration is at config/default.js.
The following parameters can be set in config files or in env variables:
- 
PORT: port number the health check dropin listnering on
- 
LOG_LEVEL: the log level
- 
KAFKA_URL: comma separated Kafka hosts
- 
KAFKA_CLIENT_CERT: Kafka connection certificate, optional; if not provided, then SSL connection is not used, direct insecure connection is used; if provided, it can be either path to certificate file or certificate content
- 
KAFKA_CLIENT_CERT_KEY: Kafka connection private key, optional; if not provided, then SSL connection is not used, direct insecure connection is used; if provided, it can be either path to private key file or private key content
- 
KAFKA_MESSAGE_ORIGINATOR: The originator value for the kafka messages
- 
KAFKA_GROUP_ID: the Kafka group id
- 
topics.TAAS_JOB_CREATE_TOPIC: the create job entity Kafka message topic
- 
topics.TAAS_JOB_UPDATE_TOPIC: the update job entity Kafka message topic
- 
topics.TAAS_JOB_CANDIDATE_UPDATE_TOPIC: the update job candidate entity Kafka message topic
- 
TAAS_API_URL: the taas api url
- 
auth0.AUTH0_URL: Auth0 URL, used to get TC M2M token
- 
auth0.AUTH0_AUDIENCE: Auth0 audience, used to get TC M2M token
- 
auth0.AUTH0_CLIENT_ID: Auth0 client id, used to get TC M2M token
- 
auth0.AUTH0_CLIENT_SECRET: Auth0 client secret, used to get TC M2M token
- 
auth0.AUTH0_PROXY_SERVER_URL: Proxy Auth0 URL, used to get TC M2M token
- 
auth0.TOKEN_CACHE_TIME: Auth0 token cache time, used to get TC M2M token
- 
zapier.ZAPIER_COMPANYID_SLUG: your company id in zapier; numeric value
- 
zapier.ZAPIER_CONTACTID_SLUG: your contact id in zapier; numeric value
- 
zapier.ZAPIER_SWITCH: decides whether posting job related message to zapier or not; possible values areONandOFF, default isOFF
- 
zapier.ZAPIER_WEBHOOK: the remote zapier zap webhook url for posting job related message
- 
zapier.ZAPIER_JOB_CANDIDATE_SWITCH: decides whether posting job candidate related message to zapier or not; possible values areONandOFF, default isOFF
- 
zapier.ZAPIER_JOB_CANDIDATE_WEBHOOK: the remote zapier zap webhook url for posting job candidate related message
- 
Navigate to the directory local
- 
Run the following command docker-compose up -d 
- 
Make sure to use Node v12+ by command node -v. We recommend using NVM to quickly switch to the right version:nvm use 
- 
From the project root directory, run the following command to install the dependencies npm install 
- 
To run linters if required npm run lint To fix possible lint errors: npm run lint:fix 
- 
Local config In the taas-es-processorroot directory create.envfile with the next environment variables. Values for Auth0 config should be shared with you on the forum.# Auth0 config AUTH0_URL= AUTH0_AUDIENCE= AUTH0_CLIENT_ID= AUTH0_CLIENT_SECRET=- Values from this file would be automatically used by many npmcommands.
- ⚠️ Never commit this file or its copy to the repository!
 
- Values from this file would be automatically used by many 
- 
Start the processor and health check dropin npm start 
To run the processor using docker, follow the below steps
- 
Navigate to the directory docker
- 
Rename the file sample.api.envtoapi.env
- 
Set the required Kafka url in the file api.env.Note that you can also add other variables to api.env, with<key>=<value>format per line. If using AWS ES you should addAWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYvariables as well.
- 
Once that is done, run the following command docker-compose up 
- 
When you are running the application for the first time, It will take some time initially to download the image and install the dependencies