You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-41Lines changed: 34 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,11 @@ PPMessage targets to be deployed on Linux, Mac OS X and Windows systems. And PPM
5
5
6
6
PPMessage includes a backend system which exposes oauth and web service APIs, a frontend SDK named PPCom, a frontend App named PPKefu.
7
7
8
-
PPCom run in customer user side, and can be integrated in Web site via a single line Javascript code or integrated in mobile App with PPCom mobile API. Customer use PPCom to communicate with service user.
8
+
PPCom run on customer user side, and can be integrated in Web site via a single line Javascript code or integrated in mobile App with PPCom mobile API. Customer use PPCom to communicate with service user.
9
9
10
-
PPKefu run in service user side, service user can use PPKefu application to communicate with customer user. PPKefu can run on Windows, Mac OS X, Android, iOS and Web.
10
+
PPKefu run on service user side, service user can use PPKefu application to communicate with customer user. PPKefu can run on Windows, Mac OS X, Android, iOS and Web.
11
11
12
-
PPConsole is Web user interface of PPMessage and open sourced. After PPMessage backend running, PPConsole provided a Web interface to help the service team leader to setup the PPMessage system.
12
+
PPConsole is Web user interface of PPMessage and open sourced as well. After PPMessage backend running, PPConsole provided a Web interface to help the service team leader to setup the PPMessage system.
13
13
14
14
15
15
> In the following, it is a simple guide to help developer delopy PPMessage backend and generate Web version of PPCom and PPKefu on Mac OS X. Want to know more, please go to [PPMessage Site](http://ppmessage.com) get more detail documents about PPMessage.
@@ -74,7 +74,7 @@ PPConsole is Web user interface of PPMessage and open sourced. After PPMessage b
74
74
75
75
### Config mysql and redis
76
76
77
-
* Mysql user and password (replace DB_PASSWORD with what you want to set as db password)
77
+
* Mysql user and password (replace DB_PASSWORD with what you want to set as mysql password)
78
78
79
79
```Bash
80
80
brew services list
@@ -89,62 +89,57 @@ PPConsole is Web user interface of PPMessage and open sourced. After PPMessage b
89
89
brew services list
90
90
brew services start redis
91
91
```
92
-
* Config redis
93
-
```Bash
94
-
vim /usr/local/etc/redis.conf and comment all save lines
95
-
># save 900 1
96
-
># save 300 10
97
-
># save 60 10000
98
-
```
99
92
100
93
### Config and prepare PPMessage
101
94
102
95
> Assuming you have clone ppmessage and under ppmessage directory.
103
96
> In the directory, you can see `dist.sh``README.md` files and `ppmessage` directory.
104
97
105
-
Before config PPMessage check the requirement is done or not.
98
+
#### Check the requirement is done or not.
99
+
100
+
> require.py needs super user permission
106
101
107
102
```Bash
108
-
python ppmessage/scripts/require.py
103
+
sudo python ppmessage/scripts/require.py
109
104
```
110
105
106
+
#### Use your text editor (vim/emacs/sublime) to edit the config file in PPMessage
107
+
111
108
```Bash
112
109
vim ppmessage/bootstrap/config.py
113
-
...
114
-
python ppmessage/scripts/table.py
115
-
python ppmessage/scripts/bootstrap.py
116
-
python ppmessage/scripts/db2cache.py
117
110
```
118
111
119
-
### Generate PPCom - web version
112
+
#### Bootstrap PPMessage based on your customized config.py file
113
+
```Bash
114
+
sh dist.sh bootstrap
115
+
```
116
+
117
+
### Generate PPCom/PPKefu/PPConsole - web version
118
+
119
+
> PPCom has iOS and Android SDK. PPKefu has Android, iOS, Windows PC, Mac OS X PC application.
120
+
121
+
#### Bower components install
122
+
123
+
> Install Web javascript libraries via bower.
120
124
121
125
```Bash
122
-
cd ppmessage/ppcom/web
123
-
bower install
124
-
cd -
125
-
cd ppmessage/ppcom/web/gulp
126
-
npm install
127
-
gulp
126
+
sh dist.sh bower
128
127
```
129
128
130
-
### Generate PPKefu - web version
129
+
#### Node components install
130
+
131
+
> Install node.js components via npm.
131
132
132
133
```Bash
133
-
cd ppmessage/ppkefu/ppkefu
134
-
bower install
135
-
npm install
136
-
gulp
134
+
sh dist.sh npm
137
135
```
138
136
139
-
### Generate PPConsole
137
+
#### Run gulp task
138
+
139
+
> Use gulp task to generate final PPCom/PPKefu/PPConsole javascript file.
140
140
141
141
```Bash
142
-
cd ppmessage/ppconsole
143
-
bower install
144
-
cd -
145
-
cd ppmessage/ppconsole/gulp
146
-
npm install
147
-
gulp
142
+
sh dist.sh gulp
148
143
```
149
144
150
145
### Start/Stop PPMessage server
@@ -160,20 +155,18 @@ Before config PPMessage check the requirement is done or not.
160
155
sh dist.sh log
161
156
```
162
157
163
-
> Check PPMessage status
164
-
> sh dist.sh proc
165
-
166
-
167
158
### Check PPCOM
168
159
169
-
Use your brower open your server url which has been configed, suggest using Chrome browser.
160
+
Use your browser open your server url which has been configed in config.py file.
0 commit comments