https://github.com/theideasaler/serverless-email-bot
This demo app contains code of building a serverless email bot
https://github.com/theideasaler/serverless-email-bot
lambda nodejs serverless
Last synced: 5 months ago
JSON representation
This demo app contains code of building a serverless email bot
- Host: GitHub
- URL: https://github.com/theideasaler/serverless-email-bot
- Owner: theideasaler
- Created: 2019-11-23T12:42:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T07:24:15.000Z (about 3 years ago)
- Last Synced: 2024-12-06T17:52:17.586Z (over 1 year ago)
- Topics: lambda, nodejs, serverless
- Language: TypeScript
- Homepage:
- Size: 1.05 MB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# serverless-email-bot
This demo serverless email bot is built with Gmail & nodemailer and deployed on AWS Lambda.
> Author: Neo
> Date: Nov 2019
## Installation
Run `npm install` to install all dependencies
## Settings
Create a .env file in the root path and setup your own variables
## Test email bot locally
Run `npm run deploy` to deploy the serverless email bot on Lambda
## Deployment
Replace the related settings in serverless.yml file. eg.region. Run `npm run deploy` to deploy the serverless email bot on Lambda
## Tips for production
- Add Google reCAPTCHA validation to prevent malicious attempts
- Sanitize form values in Lambda to prevent Cross-Site Scripting (XSS)