Chat with GPT via email.
- Install the Serverless Framework
- Configure your AWS CLI
- Connect your domain (
HOSTED_ZONE_NAME) to AWS Route 53 and issue your ACM certificate forAPI_DOMAINandAPP_DOMAINdomains on ACM - Setup your Mailgun sending domain and create a "Store and notify" mail receiving route on address
MAILGUN_EMAILthat points tohttps:<API_DOMAIN>/incomingOptional: Setup a local development route that points to your local tunnel addresshttps://<LOCALTUNNEL_SUBDOMAIN>.loca.lt/incoming
To add environment variables to your project
- Rename
env.exampleto.env. - Set environment variables for your stage in
.env.
Install the npm packages
$ npm installInstall local tunnel to test mail hooks on local environment
$ npm install -g localtunnelTo simulate API Gateway locally using serverless-offline
$ script/startTo deploy your project to production
$ script/deployRun your tests using
$ npm test