forked from YueDayu/zjzs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
34 lines (27 loc) · 1.1 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#About Zijingzhisheng#
way to deployment:
cd into the dir
run in terminal:
sudo npm install
nmp start
use your nginx to listen 80 and forward it to 4600 port
bin/www:7 please remove "\"0.0.0.0\", " for more safety
file struct:
bin: used to setup the server.
node_modules: essential decpendency accesories.
public: static folders.
routes: used for floor-1 routers.
views: http templates.
webentity: website generator.
weixin_basic: wechat basic accessories. (API, etc.)
weixin_handler: the handler for wechat official server.
models: the interface of databases
what to modify?
To modify host ip & open auto_refresh menu: address_configure.js
To modify databases: models/models.js
To modify weixin appid & token & appsecret: weixin_basic/settings.js
#REMEMBER TO ENSURE INDEX IN MONGODB:
ensure ticket with index: stu_id & activity
ensure student with index: weixin_id
ensure seat with index: activity
#For TICKET, ensure that activity is also an index.