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