MoonMail: 无需服务器可以无限发送邮件的开源项目

使用亚马逊的SES,可以无需服务器,让亚马逊的Lambda不断地发送邮件直至无限。采取Serverless架构,无需自己假设服务器,就可以发送营销邮件(垃圾邮件)。

该项目使用Serverless 框架,有两个组件:api和events。api是提供REST API,而Events包含整个应用业务逻辑。

安装使用:
安装NPM包:
npm install
cd events/
npm install
cd ../api/
npm install

初始化Serverless项目:
sls project init -c -n your-lower-case-project-name

增加变量到 s-variables-<stage>-<region>:


{
...,
"apiHost": "yourendpointhost.com"
}

在你的AWS账号创建你需要的资源:
sls resources deploy

部署所有Lambda函数:
sls function deploy

部署MoonMail events:
sls event deploy

创建API Gateway端点:
sls endpoint deploy

GitHub - microapps/MoonMail: Shoot billions of ema