MoonMail Models is a nodejs package that provides the data persistence layer, sitting on top of DynamoDB. Due to the success of this project, the MoonMail team is already working on an abstraction of this module to be project agnostic so anyone can use it at any DynamoDB based project.
We are assuming that you'll run this code inside an AWS Lambda function, with a role that has enough permissions to read/write DynamoDB.
Install the package:
npm install https://github.com/microapps/moonmail-models
Set the required environment variables with the corresponding DynamoDB table names:
LINKS_TABLE
CAMPAIGNS_TABLE
Contributions are always welcome! If you'd like to collaborate with us, take into account that:
Feel free to contact us if you have any question!
Developed by microapps, used in MoonMail
MoonMail is available under the MIT license. See the LICENSE file for more info.