Don't edit this project directly because ~email is a production app. To contribute:
-
Remix ~email
-
In your local dev change
EMAIL_TEMPLATE_API
(inpuppet/hieradata/development/common.yaml
) to your remix url. Then trigger a full deploy insh/watch.sh
withf
. -
Use paw or similar to trigger emails to your dev api. For example, POSTing to
https://api.glitch.development/email/[email protected]
orhttps://api.glitch.development/teams/[team-id]/sendJoinTeamEmail
.- You'll need to include an auth header with your request
Authorization: user-persistent-token
- You might also need to override
RATE_LIMIT_PERIOD
inemail.ts
while developing.
- You'll need to include an auth header with your request
-
You can see the emails sent from your dev env at https://glitch.development/mailbox/.
To test your email templates with real email clients (gmail, ios mail, etc.) you'll need to use the staging environment.
-
In your local dev change
EMAIL_TEMPLATE_API
(inpuppet/hieradata/staging/common.yaml
) to your remix url. Commit this and merge it into thestaging
branch. -
Use paw or similar to trigger emails to the staging api. For example, POSTing to
https://api.staging.glitch.com/email/[email protected]
orhttps://api.staging.glitch.com/teams/[team-id]/sendJoinTeamEmail
.- Staging can only send email to whitelisted addresses, so ask DavidH to add your email(s) to the staging environment SES whitelist.
-
The emails will be sent to your email address.
Since this is a small microservice app with infrequent updates, the process is less hardcore than ~Community.
-
Let everyone in #infrastructure know that you're working on email app updates, and make you know who else is working on it
-
Use the swapDomains api endpoint to make your remixed email app the new prod one. This part is the same as on ~Community
-
Use
Advanced Options → Export to Github
toFogCreek/email
. Then merge in the PR that's created
💌