2

I have came across this email template editor/builder called Mosaico which i would like to integrate with my PHP application. I'm having difficulties installing it as the documentation doesn't seem to cover the installation process very well, would be great if someone could suggest what am i missing and how to install Mosaico for a PHP project.

I have done so far:

  1. Installed NodeJS v8.0 + added PHP ImageMagick extension

  2. npm install

  3. installed grunt-cli globally npm install -g grunt-cli

Now the manual says: compile and run a local webserver (http://127.0.0.1:9006) with incremental build and livereload

grunt

So i run this "grunt" command and it comes with an error saying "grunt hasn't been installed locally to your project" however i have installed grunt-cli to be available globally: enter image description here

  1. Next I have copied all the files from the git directory to root directory on my server except index.html and edit.html
  2. run the command "npm install" to install all required dependencies.
  3. running the command "grunt" works now however it has stopped responding on:

Running "watch" task

Waiting...

enter image description here

What am i missing here?

UPDATE 1

I have found what i was doing wrong. The configuration file holding all the path variables needed changing. Everything started working as it should after that. In my case it was located here: $_SERVER["DOCUMENT_ROOT"]."/backend-php/config.php"

Community
  • 1
  • 1
anonymous007
  • 319
  • 1
  • 3
  • 12

0 Answers0