当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
6 Star 8 Fork 9

iRavior / Fanfou
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Fanfou

公司内部订餐系统v1.0

By Ravior (QQ:1767071791,Mail:ravior@gitlib.com)

Part0.运行效果

饭否: http://fanfou.gitlib.com/

Part1.运行环境

  • NodeJS 0.10.18
  • Redis 2.8.9

Part2.依赖包

  1. Redis -----redis客户端
  2. NodeMailer -----用于发送邮件
  3. express -----NodeJS web框架
  4. ejs -----页面渲染模板
  5. async -----异步转同步

Part3.怎样运行

修改配置config.js

  • 修改url,port,redis,mail配置
  • 时间配置用于定制点餐时间和邮件通知时间

添加用户和菜名

该程序只适合小团队订餐,用户数据和菜名数据都存放在相应的文件中(model/User、model/Food),减少对数据库的依赖。同时,添加用户和菜名都需要重启服务。需要进行用户和菜名动态管理的话,可以自行添加数据库,修改数据处理模块。

运行程序

node app.js

推荐使用forever启动,forever app.js,让程序可以在后台运行,可参考: 使用forever运行nodejs应用

The MIT License (MIT) Copyright (c) 2014 iRavior Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

饭否,团队订餐系统 展开 收起
NodeJS
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
NodeJS
1
https://gitee.com/ravior/Fanfou.git
git@gitee.com:ravior/Fanfou.git
ravior
Fanfou
Fanfou
master

搜索帮助