An Azure Function App using TypeScript for handling the rendering and sending of email templates using React Email.
Read the blog post for more information.
- An installation of Node.js v20.14.0 (npm v10.7.0)
- An installation of Azure Functions Core Tools v4
- An installation of VSCode with the following extensions:
- A working knowledge of:
- Azure Functions (and the VsCode extension is installed)
- Node.js
- TypeScript
- Review and complete the
Prerequisitesabove npm i: Install dependencies
Follow the steps below to start a local DEV environment for the Azure Function:
- Copy ./local.settings-template.json to
./local.settings.jsonand replace the required environment variables - Start the Azurite Blob & Queue Services
npm run start:dev: Start the local DEV environment- Copy & paste the contents of sample.json into the
SENDGRID_QUEUE_EMAILqueue in Azurite (be sure to update the details to your email address) - Press
CTRL+cto stop the local DEV environment
Follow the steps below to start a local DEV environment for the email templates:
npm run email:dev: Start the local DEV environment- Open localhost:3000 in your browser
- Press
CTRL+cto stop the local DEV environment

