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_DOMAIN
andAPP_DOMAIN
domains on ACM - Setup your Mailgun sending domain and create a "Store and notify" mail receiving route on address
MAILGUN_EMAIL
that points tohttps:<API_DOMAIN>/incoming
Optional: 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.example
to.env
. - Set environment variables for your stage in
.env
.
Install the npm packages
$ npm install
Install local tunnel to test mail hooks on local environment
$ npm install -g localtunnel
To simulate API Gateway locally using serverless-offline
$ script/start
To deploy your project to production
$ script/deploy
Run your tests using
$ npm test