Ready to go backend for Mosaico editor
Pull request Compare This branch is 204 commits ahead, 121 commits behind voidlabs:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.circleci Mosaico v0.17 update (#48) Sep 1, 2018
.tmp Ensure empty folders are not ignored by git Sep 9, 2015
.vscode Mosaico v0.17 update (#48) Sep 1, 2018
backend Mosaico v0.17 update (#48) Sep 1, 2018
bin build (#43) Sep 15, 2017
doc DOC – fix brand config Jul 25, 2017
res Mosaico v0.17 update (#48) Sep 1, 2018
server Mosaico v0.17 update (#48) Sep 1, 2018
shared first commit Jul 7, 2017
spec Mosaico v0.17 update (#48) Sep 1, 2018
src Mosaico v0.17 update (#48) Sep 1, 2018
tasks Mosaico v0.17 update (#48) Sep 1, 2018
templates Mosaico v0.17 update (#48) Sep 1, 2018
tests SERVER – better starting handling Sep 12, 2017
uploads Ensure empty folders are not ignored by git Sep 9, 2015
.backendrc-example Mosaico v0.17 update (#48) Sep 1, 2018
.gitignore Mosaico v0.17 update (#48) Sep 1, 2018
.gitignore-release Mosaico v0.17 update (#48) Sep 1, 2018
.jsbeautifyrc Initial import v0.10 Sep 9, 2015
.jshintrc Initial import v0.10 Sep 9, 2015
.nvmrc Mosaico v0.17 update (#48) Sep 1, 2018
.prettierignore Mosaico v0.17 update (#48) Sep 1, 2018
.prettierrc.js Mosaico v0.17 update (#48) Sep 1, 2018
.travis.yml Mosaico v0.17 update (#48) Sep 1, 2018
Aptfile first commit Jul 7, 2017
CONTRIBUTING.md Update CONTRIBUTING.md Sep 6, 2017
Dockerfile Mosaico v0.17 update (#48) Sep 1, 2018
Dockerfile.CentOS Mosaico v0.17 update (#48) Sep 1, 2018
Gruntfile.js Mosaico v0.17 update (#48) Sep 1, 2018
LICENSE Add NOTICE.txt with informations about licensing of bundled and exter… Jul 7, 2016
NOTICE.txt Move from Transifex to POEditor Sep 8, 2017
Procfile first commit Jul 7, 2017
README-DEV.md README – try to make it less confusing about how to run the app – close Apr 23, 2018
README.md Mosaico v0.17 update (#48) Sep 1, 2018
_README.md Mosaico v0.17 update (#48) Sep 1, 2018
app.json fix some space Aug 22, 2018
appveyor.yml Mosaico v0.17 update (#48) Sep 1, 2018
dump.rdb SERVER – don't launch if not all connection are done Aug 24, 2017
favicon.ico Initial import v0.10 Sep 9, 2015
gulpfile.js Mosaico v0.17 update (#48) Sep 1, 2018
package-lock.json Mosaico v0.17 update (#48) Sep 1, 2018
package.json Mosaico v0.17 update (#48) Sep 1, 2018
package.json.NOTES Mosaico v0.17 update (#48) Sep 1, 2018
server-config.js Initial import v0.10 Sep 9, 2015

README.md

herokubtn

screencast

Mosaico backend

Ready to go backend for Mosaico editor version 0.17.4

Main features are:

  • upload templates and images for Mosaico editor
  • persist mailings into DB
  • an admin manage users/groups
  • download ZIP archives of mailings
  • sending mailings by email for testing purpose

Quick start

See the screencast https://youtu.be/sLzZq3cXDi0

INSTALL

ON HEROKU

Heroku uses 2 environment config vars that will take precedence over our defaults: heroku-config-vars

about heroku's stack version

This application needs the cedar-14 stack due to some limitations while running nightmare.js more informations on nightmare-heroku

ON ANOTHER SERVER

Pre-requisites

  • Node.js >=8.11.4
  • PostgreSQL >=9.6 (postgresapp on a mac)
  • Redis (brew install redis on mac redis-server to start)
  • SMTP server (like mailcatcher: brew install ruby – restart terminal – gem install mailcatcher then mailcatcher)

NB: A compiled version of sharp — which is used to resize images and declared as a dependency — should be fetched automatically by npm for your system environment. In case of troubles see sharp installation instructions.

npm install
npm run dev

Then go to: http://localhost:3000

Configuration

Mosaico backend has a decent localhost-first default configuration.

We use rc for managing the configuration. See rc documentation for learning how you can override the default configuration

An easy way to start is by a making a copy of .backendrc-example to a .backendrc file and update your configuration here