Slack app which creates previews of pulse & board names like this:
- Read Slack instructions about app creation and setup.
- Create your Slack app.
- Get your monday.com API token
- Clone repo and create .env file:
STAGE=
SLACK_VERIFICATION_TOKEN=
SLACK_CLIENT_TOKEN=
MONDAY_TOKEN=
where
- STAGE ('dev', 'prod' etc) used to mark a deployment type
- MONDAY_TOKEN - is your token for Monday API
- SLACK_VERIFICATION_TOKEN - the verification token from your Slack app settings
- SLACK_CLIENT_TOKEN - the token you will get after Slack app installation (leave it empty since you will obtain it later)
- Set and deploy lambda
* npm install -g serverless # setup serverless
* sls config credentials --provider aws --key xxx --secret xxx # auth to you AWS account
* npm install # setup your node project
Deploy using:
* sls deploy
Debug locally using:
* sls offline start
- Paste your lambda url https://your-url.amazonaws.com/your-stage/monday-app-unfurl to the Slack app event receiver form.
- Install Slack app and get User OAuth token. Paste it to .env file.
- Redeploy lambda and that's it.