Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/willerce/canku
使用 Nodejs (Express) 编写的团体订餐程序
https://github.com/willerce/canku
Last synced: 6 days ago
JSON representation
使用 Nodejs (Express) 编写的团体订餐程序
- Host: GitHub
- URL: https://github.com/willerce/canku
- Owner: willerce
- Created: 2013-01-10T14:53:12.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-14T10:25:32.000Z (over 10 years ago)
- Last Synced: 2024-04-15T11:08:33.361Z (7 months ago)
- Language: JavaScript
- Homepage: http://canku.willerce.com/
- Size: 588 KB
- Stars: 352
- Watchers: 45
- Forks: 163
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-star - canku
README
餐库
=======canku 是一个使用 nodejs 编写的多人订餐程序,使用了 [express](http://expressjs.com/) , [mongoskin](https://github.com/kissjs/node-mongoskin) 模块。使用 [mongodb](http://www.mongodb.org/) 做存储。
**餐库的功能:**
1. 用户登录、注册
2. 店铺、菜单的增删改,菜单支持特定的送餐日(如:周一,周二)
3. 菜单支持分类功能
4. 单店的上下午区分的订餐统计,以15时,作上下午的区分
5. 每订单有运气值功能,当日单店运气值最低的负责打电话点餐
6. 用户可以取消订单,但是用户的运气值在当天依然生效(如果用户当天点了餐的话)。目前还在完善中,演示地址: [http://canku.willerce.com](http://canku.willerce.com)
部署请参考,Noderce AppFog 部署指南:[http://willerce.com/post/noderce-deploy-to-appfog](http://willerce.com/post/noderce-deploy-to-appfog)
## 简单的部署介绍
git clone [email protected]:willerce/canku.git
你需要在本机启动好 MongoDB 服务,如果需要测试数据,请看[这里](https://github.com/willerce/canku/issues/17)
复制一份global.default.js,保存为 复制一份global.js,根据注释,修改参数。
运行 npm install 安装依赖包
运行 node app.js
店铺管理管理地址: http://yourname.com/admin
如果注册时提示`注册失败,请重试`请检查mongodb是否在运行(例如:可通过命令`mongo localhost/canku`连接数据库)
## 添加店铺
添加店铺、菜单管理功能比较简陋,作一些介绍
1. 店铺菜单分类,格式:数字编号#分类名|数字编号#分类名|。例如:1#商务套餐|2#营养套餐|3#其它
2. 样式,支持店铺CSS,主要用于对菜单列数进行一些调整,例如这个1行2列.food-list li {width: 269px;}
.food-list li:nth-child(even) {margin-right: 0; float:right;}3. 支持以图片的方式上传每家店铺的菜单,用户可以直接在图上戳戳以点餐,图片菜单中的菜不能算入价格。
##License
(The MIT License)
Copyright (c) 2013 willerce
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.