Send contact-us emails easily with this micro-service using an AWS Lambda and the Serverless framework.
(Assuming you already have serverless configured with AWS)
- Pull down project
- Configure email credentials in config.yml
- Install dependencies (
npm install
) - Deploy (
npm run deploy
)
POST /sendContact
Body:
name: String
email: String
message: String
Response:
Success:
statusCode: 200
body: {success: true}
Failure:
statusCode: ~400
body: Error Message
- run locally
npm run start
Written in es6+; using babel to transpile to AWS Lambda Node version 6.10. Package comes with ESLint and Git pre-commit support
Contributions, issues, and feature requests would be awesome, just submit an issue or PR! :)