Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including ses-templates with all npm packages installed. Try it out:

ses-templates lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("ses-templates/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

ses-templates v1.0.11

Amazon SES template management made easy.

SES Templates

joshcummingsdesign

Amazon SES template management made easy.

Requirements

  • Node ^13.12.0
  • npm ^6.14.4

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.

  1. Create a new directory and run

     npm init
    
  2. Install ses-templates

     npm install ses-templates
    
  3. Set 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>
    
  4. 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 command

Examples

Take a look at our example project for more details.

Contributing

Starting the local development environment

  1. Install the project dependencies

    npm install
    
  2. Copy .env.example to .env and make sure to export the variables to your environment

    cp .env.example .env
    
  3. Start the project watcher

    npm start
    
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free