https://github.com/wix-incubator/mjml-react-example
mjml-react example project
https://github.com/wix-incubator/mjml-react-example
example mjml react
Last synced: 9 months ago
JSON representation
mjml-react example project
- Host: GitHub
- URL: https://github.com/wix-incubator/mjml-react-example
- Owner: wix-incubator
- License: mit
- Created: 2019-01-31T07:57:28.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-20T15:03:21.000Z (almost 3 years ago)
- Last Synced: 2025-04-14T18:09:50.777Z (9 months ago)
- Topics: example, mjml, react
- Language: JavaScript
- Homepage: https://github.com/wix-incubator/mjml-react
- Size: 6.84 KB
- Stars: 50
- Watchers: 64
- Forks: 30
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mjml-react example project
The aim of this project is to show usage of [mjml](https://mjml.io/) and [mjml-react](https://github.com/wix-incubator/mjml-react) inside a node js.
## Usage
```bash
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/](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:
```bash
npm run build
npm run generate
```
And you can automate things by sending the generated email to your test inbox:
```bash
npm run build
npm run generate | mail -s "$(echo -e "This is a test email\nContent-Type: text/html")" myemail@myprovider.com
```