A simple integration with monday.com and sendgrid via an express server that sends a plain text email to a specified individual, wishing them a happy birthday.
This is the TypeScript implementation.
For the JavaScript Implementation, [click here] (TO BE UPDATED)
For the Serverless.js (AWS Lambda) Implementation, [click here] (TO BE UPDATED)
Clone this repository then in the project root directory install the project's dependencies using the following command npm install
Alternatively, you can run the following commands:
npx degit https://github.com/aalnussairi/monday.com-birthday-emailer-ts/
npm run install
- Rename the .env.example file to .env
- If you don't wish to run the server on port 8300, change the PORT environment varible to your preferred port and reflect those changes to the npm scripts provided
- Set the MONDAY_SIGNING_SECRET, this can be obtained by going to Developers -> [Your App Name] -> Basic Information. For more info refer to the docs
- Follow the SendGrid Guide to obtain an API key and set it as the SENDGRID_API_KEY environment variable
- Set the email you are using to send emails to the SENDGRID_FROM environment variable
- Set your name in the MY_NAME environment variable :)
To run the server, use the following command
npm start
To run the server while watching for changes, use the following command
npm run serve
To expose the server to the world using ngrok, use the folowing command
npm run expose