Skip to content

MJML rendering-as-a-service. This service allows you to POST variables at various templates to produce the Email subject & body -- in both HTML && Plaintext.

Notifications You must be signed in to change notification settings

sudowing/email-template-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MJML rendering as a service

email-template-service

Build templates and post variables via RPC.

email-template-service promo-art

Run via Node

# install dependencies
npm i

# start app
npm run start

The service should now be available:

Run via Docker

# build docker container
docker build -t sudowing/email-template-service:local -f Dockerfile .

docker run \
	--rm \
	-p 8080:8080 \
	--name myservice \
	sudowing/email-template-service:local

The service should now be available:

API Documentation

I use the Insomnia API Client for develoment, and I've included an insomnia workplace export of some general service calls to speed your adoption.

Docker Image Publishing

The steps below are not unique to this project -- but I often have to lookup the steps -- so I'll document them here for convenience.

# build docker container
docker build -t sudowing/email-template-service:local -f Dockerfile .

# tag & push latest
docker tag sudowing/email-template-service:local sudowing/email-template-service:latest
docker push sudowing/email-template-service:latest

# tag & push v1.3.0
docker tag sudowing/email-template-service:local sudowing/email-template-service:1.3.0
docker tag sudowing/email-template-service:local sudowing/email-template-service:1.3
docker tag sudowing/email-template-service:local sudowing/email-template-service:1
docker push sudowing/email-template-service:1.3.0
docker push sudowing/email-template-service:1.3
docker push sudowing/email-template-service:1

Versioning

SemVer is used for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

MJML rendering-as-a-service. This service allows you to POST variables at various templates to produce the Email subject & body -- in both HTML && Plaintext.

Resources

Stars

Watchers

Forks

Packages

No packages published