Install Node:
Example for mac OS X:
$ brew install nodeInstall Yarn:
Example for mac OS X:
$ brew install nodeSet yarn scoped registry for Loopify packages:
$ yarn config set @loopify-jfrog-public:registry https://loopify.jfrog.io/artifactory/api/npm/npm-local-public/Install node dependencies:
$ yarn installDocumentation on the Loopify document format can be found here.
$ node ./node_modules/gulp/bin/gulp.js build(Auto-build on file changes)
$ node ./node_modules/gulp/bin/gulp.js serveYou can also preview your template in the editors inside the Loopify web app.
When running serve you will get a random tunnel URL.
It might look like this: https://lnapkgyckb.localtunnel.me.
Go to stage.loopify.com and log in to any of your accounts.
Load your local template into the template editor by entering this URL:
https://stage.loopify.com/#/[ACCOUNT_ID]/e-mail/templates/local-template/edit?url=https://lnapkgyckb.localtunnel.me/document.json
Load your local template into the campaign editor by entering this URL:
https://stage.loopify.com/#/[ACCOUNT_ID]/e-mail/local-template/edit?url=https://lnapkgyckb.localtunnel.me/document.json
If you are also serving the web app from localhost, you can speed things up by also loading the template from localhost:
http://localhost:1337/#/[ACCOUNT_ID]/e-mail/local-template/edit?url=http://localhost:1338/document.json