forked from publicres/zjzs
-
Notifications
You must be signed in to change notification settings - Fork 2
THUCampus/wxTicket
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
#About Zijingzhisheng#
way to deployment:
cd into the dir
run in terminal:
sudo npm install
npm 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 `hostIP` & open `autoRefresh` 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 ticket with index: activity
ensure student with index: weixin_id
ensure seat with index: activity
To auto refresh menu:
$ crontab -e
> 30 4 * * * node /root/ticket/auto_maintain.js >/dev/null 2>&1
About
Ticketing service on Wechat, v2.0, nodejs
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 66.6%
- HTML 22.0%
- CSS 11.4%