1.0.14 • Published 3 years ago
ses-templates v1.0.14
SES Templates
Amazon SES template management made easy.
Requirements
- Node ^18.3.0
Getting Started
SES Templates allows you to easily manage your AWS SES templates by giving you a local development server with live reloading to test out your changes, as well as some helpful commands to push and pull your changes to and from SES.
To get started, simply make a new project to manage your templates.
Create a new directory and run
npm initInstall ses-templates
npm install ses-templatesSet the following environment variables
PORT=<number> # the local dev server port AWS_ACCESS_KEY_ID=<string> AWS_SECRET_ACCESS_KEY=<string> AWS_SES_REGION=<string>Start the local dev server
npx ses-templates start
You can add this to your package.json scripts if you prefer:
"scripts": {
"start": "ses-templates start"
}Commands
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
start start the local development server
list list all templates in SES
create <name> create a new template
push [name] push templates to SES
pull [name] pull templates from SES
delete <name> delete a template from SES
help [command] display help for commandExamples
Take a look at our example project for more details.
Contributing
Starting the local development environment
Install the project dependencies
npm installCopy
.env.exampleto.envand make sure to export the variables to your environmentcp .env.example .envStart the project watcher
npm start