Install all dependency library:
npm install
Run unit test:
npm test
Setup LINE access token/secret key:
aws ssm put-parameter --type=String --name /exchangecrawler/LINE_ACCESSTOKEN --value **YOUR ACCESS TOKEN**
aws ssm put-parameter --type=String --name /exchangecrawler/LINE_SECRET --value **YOUR SECRET**
Setup Datadog api key:
aws ssm put-parameter --type=String --name /exchangecrawler/DATADOG_API_KEY --value **YOUR API KEY**
Setup Google Cloud crendential for BigQuery:
aws ssm put-parameter --type=String --name /exchangecrawler/GCP_PROJECT_ID --value **YOUR PROJECT ID**
aws ssm put-parameter --type=String --name /exchangecrawler/GCP_CLIENT_EMAIL --value **YOUR CLIENT EMAIL**
aws ssm put-parameter --type=String --name /exchangecrawler/GCP_PRIVATE_KEY --value **YOUR PRIVATE KEY**
Deploy ExchangeCrawler service to AWS:
sls deploy