wix-incubator / mjml-react-example

mjml-react example project

Home Page:https://github.com/wix-incubator/mjml-react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mjml-react example project

The aim of this project is to show usage of mjml and mjml-react inside a node js.

Usage

git clone git@github.com:wix-incubator/mjml-react-example.git
cd mjml-react-example
npm install
npm start

and afterwards just open your browser using the link http://localhost:3000/.

The http server will listen and restart upon each change inside src folder. You just need to refresh a browser window manually.

Running from command line

You can also run and get your email inside console:

npm run build
npm run generate

And you can automate things by sending the generated email to your test inbox:

npm run build
npm run generate | mail -s "$(echo -e "This is a test email\nContent-Type: text/html")" myemail@myprovider.com

About

mjml-react example project

https://github.com/wix-incubator/mjml-react

License:MIT License


Languages

Language:JavaScript 98.6%Language:CSS 1.4%