A microservice for email the contents of a web form (or any data sent via HTTP POST).
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.gitignore
LICENSE
README.md
package-lock.json
package.json
serverless.yml
tsconfig.json
webpack.config.js

README.md

Form2Email

A Serverless microservice written in TypeScript to email the contents of a web form (or any data send via HTTP POST).

User Guide

TODO: Deployment instructions

Developer Guide

Fork me, change me, then submit a pull request. Please follow conventions for faster responses and approvals.

Testing

  • Run npm test to execute tests
  • Test locally using serverless invoke local -f submitForm -l -d "{ \"body\":\"hello=world&subject=local%20test\" }"
  • Test in production using serverless invoke -f submitForm -l -d "{ \"hello\":\"world\", \"subject\":\"production test\" }"

Conventions

  • Use TDD
  • Tests follow Mocha and Chai conventions
  • handler.js wires up platform-specific dependencies and injects them to the actual service
  • service.js provides the actual functionality for the service

To-do