$ git clone https://github.com/PPMESSAGE/ppmessage.git
$ cd ppmessage
In the following document, assuming you are under the
ppmessage
directory.
$ sh ppmessage/scripts/set-up-ppmessage-on-mac.sh
Make sure everything is ok.
- Mysql user and password (replace DB_PASSWORD with what you want to set as mysql password)
brew services list
brew services start mysql
mysqladmin -uroot password DB_PASSWORD
-
Redis
- Start redis
brew services list
brew services start redis
sudo bash dish.sh dev
Register the
ppmessage
python module into system.
vim ppmessage/bootstrap/config.py
Edit the config file of PPMessage, config detail is in PPMessage document.
sh dist.sh bootstrap
Bootstrap the PPMessage system with the config.py
bash dist.sh npm
Install node.js components via npm.
bash dist.sh bower
Install Web javascript libraries via bower.
bash dist.sh gulp
Use gulp task to generate final PPCom/PPKefu/PPConsole javascript file.
sh dist.sh start
sh dist.sh stop
sh dist.sh log
Use your browser open your url which combined server_name and nginx_listen_port configed in config.py.
PPCONSOLE, WEB admin of PPMessage.
http://server_name:nginx_listen_port
PPKEFU, service user use PPKEFU to service the customer which use PPCOM chat with service user.
http://server_name:nginx_listen_port/ppkefu