The aim of this project is to show usage of mjml and mjml-react inside a node js.
git clone [email protected]: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.
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")" [email protected]