公司内部订餐系统微信端v1.0
By Ravior (QQ:1767071791,Mail:[email protected])
- NodeJS 0.10.18
- Redis 2.8.9
- Redis -----redis客户端
- express -----NodeJS web框架
- ejs -----页面渲染模板
- async -----异步转同步
- xml2js -----解析xml
- xmlbuilder -----生成xml
- token:微信公共平台token
- port,redis配置(微信公共平台只支持80端口,可采用nginx作代理)
- 时间配置用于定制点餐时间
该程序只适合小团队订餐,用户数据和菜名数据都存放在相应的文件中(model/User、model/Food),减少对数据库的依赖。同时,添加用户和菜名都需要重启服务。需要进行用户和菜名动态管理的话,可以自行添加数据库,修改数据处理模块。只支持统一的邮箱地址(默认只支持qq邮箱,可自行修改代码中的正则表达式)
node app.js
推荐使用forever启动,
forever app.js
,让程序可以在后台运行