{"id":19442154,"url":"https://github.com/codertonychan/node-tony-elm","last_synced_at":"2026-05-08T03:08:53.137Z","repository":{"id":128412279,"uuid":"114976498","full_name":"CoderTonyChan/node-tony-elm","owner":"CoderTonyChan","description":"全家桶系列 后台","archived":false,"fork":false,"pushed_at":"2018-01-04T07:37:50.000Z","size":899,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T07:47:14.907Z","etag":null,"topics":["config-lite","cross-env","express-generator","express4","mongodb","node","pm2","supervisor","tony"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CoderTonyChan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-21T07:32:22.000Z","updated_at":"2018-01-04T07:35:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"bbd5a1e4-48dc-4f6c-bdba-75b8de6436b7","html_url":"https://github.com/CoderTonyChan/node-tony-elm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CoderTonyChan/node-tony-elm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderTonyChan%2Fnode-tony-elm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderTonyChan%2Fnode-tony-elm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderTonyChan%2Fnode-tony-elm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderTonyChan%2Fnode-tony-elm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CoderTonyChan","download_url":"https://codeload.github.com/CoderTonyChan/node-tony-elm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoderTonyChan%2Fnode-tony-elm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285175514,"owners_count":27127379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-19T02:00:05.673Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["config-lite","cross-env","express-generator","express4","mongodb","node","pm2","supervisor","tony"],"created_at":"2024-11-10T15:38:26.511Z","updated_at":"2025-11-19T03:04:01.371Z","avatar_url":"https://github.com/CoderTonyChan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 一些知识点\n\n## Script\nasync/await 在node7.0中出现，需要使用harmony模式运行，在7.6以上就能够直接使用了。 (npm install supervisor --save-dev)\ncross-env NODE_ENV=development 解决跨平台 (npm install cross-env --save-dev)\nsupervisor 进程监控自动重启\n\n需要支持import语法 (require('babel-core/register'))\n\nconfig-lite (1.5 和 2.1 )\nconfig-lite 是一个轻量的读取配置文件的模块。config-lite 会根据环境变量（NODE_ENV）的不同从当前执行进程目录下的 config 目录加载不同的配置文件。如果不设置 NODE_ENV，则读取默认的 default 配置文件，如果设置了 NODE_ENV，则会合并指定的配置文件和 default 配置文件作为配置，config-lite 支持 .js、.json、.node、.yml、.yaml 后缀的文件。\n\n如果程序以 NODE_ENV=test node app 启动，则通过 require('config-lite') 会依次降级查找 config/test.js、config/test.json、config/test.node、config/test.yml、config/test.yaml 并合并 default 配置; 如果程序以 NODE_ENV=production node app 启动，则通过 require('config-lite') 会依次降级查找 config/production.js、config/production.json、config/production.node、config/production.yml、config/production.yaml 并合并 default 配置。\n\n## pm2\nhttp://www.jianshu.com/p/4908912e3535\n\n## bodyParser和formidable冲突\n\n\n## 技术栈\n\nnodejs + express + mongodb + mongoose + es6/7 + vue\n\n## 项目构建\n\n```\nexpress4\nhttps://github.com/expressjs/express/wiki\n\nexpress-generator\nhttp://www.expressjs.com.cn/starter/generator.html\n\nkoa2 wiki\nhttps://github.com/koajs/koa/wiki\n\n注意 阿里的eggjs 已经支持 koa2\nhttps://github.com/eggjs/egg\n\npm2\nnpm install -g pm2\n\nmongodb + mongoose\n图形界面\nRobo 3T\n\nsupervisor\n\n\n```\n\n\n\n\n## 项目运行\n\n\n```\n项目运行之前，请确保系统已经安装以下应用\n1、node (6.0 及以上版本)\n2、mongodb (开启状态)\n3、GraphicsMagick (裁切图片)\n```\n\n```\ncd node-elm\n\nnpm install\n\nnpm run dev\n\n访问: http://localhost:7777\n\n```\n\n## 目标功能\n\n- [x] IP定位 -- 完成\n- [x] 城市列表 -- 完成\n- [x] 搜索地址 -- 完成\n- [x] 上传图片 -- 完成\n- [x] 添加商铺 -- 完成\n- [x] 添加食品 -- 完成\n- [x] 测量距离 -- 完成\n- [x] 搜索美食，餐馆 -- 完成\n- [x] 根据距离、销量、评分、特色菜、配送方式等进行排序和筛选 -- 完成\n- [x] 评价列表 -- 完成\n- [x] 食品详情 -- 完成\n- [x] 商家详情 -- 完成\n- [x] 购物车功能 -- 完成\n- [x] 登录、注册 -- 完成\n- [x] 修改密码 -- 完成\n- [x] 用户信息 -- 完成\n- [x] 添加、删除、修改收货地址 -- 完成\n- [x] 下单  -- 完成 ✨✨\n- [x] 订单信息 -- 完成\n- [x] 红包 -- 完成\n- [x] 商铺管理 -- 完成\n- [x] 食品管理 -- 完成\n- [x] 管理员权限验证 -- 完成\n- [x] 超级管理员 -- 完成\n- [x] 订单管理 -- 完成\n- [x] 流量统计 -- 完成\n- [x] 前后台路由同构 -- 完成\n- [x] 部署上线 -- 完成\n\n\n# API接口文档\n\n## [接口文档地址](https://github.com/CTLifeHand/node-tony-elm/blob/master/API.md)\n\n\n\n\n# 项目布局\n\n```\n.\n├── InitData                        初始化数据\n│   ├── activity.js                 餐馆活动\n│   ├── category.js                 餐馆分类\n│   ├── cities.js                   城市列表\n│   ├── delivery.js                 配送方式\n│   ├── entry.js                    食品分类\n│   ├── explain.js                  解释说明\n│   ├── hongbao.js                  红包\n│   ├── payments.js                 支付方式\n│   ├── rate.js                     评论\n│   └── remark.js                   备注列表\n├── config                          运行配置\n│   ├── default.js                  默认配置\n│   └── development.js              开发环境\n├── controller                      处理中心，负责路由及数据库的具体操作\n│   ├── admin\n│   │   └── admin.js                管理员\n│   ├── bos\n│   ├── eus\n│   ├── member\n│   │   └── vipcart.js              会员卡\n│   ├── payapi\n│   ├── promotion\n│   │   └── hongbao.js              红包\n│   ├── shopping\n│   │   ├── category.js             餐馆分类\n│   │   ├── food.js                 食品\n│   │   └── shop.js                 餐馆\n│   ├── statis\n│   │   └── statis.js               数据统计\n│   ├── ugc\n│   │   └── rating.js               评论\n│   ├── v1\n│   │   ├── address.js              收获地址\n│   │   ├── captchas.js             验证码\n│   │   ├── carts.js                购物车\n│   │   ├── cities.js               城市列表\n│   │   ├── order.js                订单\n│   │   ├── remark.js               备注\n│   │   └── search.js               搜索\n│   ├── v2\n│   │   ├── entry.js                食品分类\n│   │   └── user.js                 用户信息\n│   ├── v3\n│   │   └── explain.js              解析说明\n│   └── v4\n├── logs                            日志文件\n├── middlewares                     中间价\n│   ├── check.js                    权限验证    \n│   └── statistic.js                API数据统计\n├── models                          模型(数据库)\n│   ├── admin\n│   │   └── admin.js                管理员模型\n│   ├── bos\n│   │   └── order.js                订单模型\n│   ├── eus\n│   ├── ids.js\n│   ├── member\n│   ├── payapi\n│   ├── promotion\n│   │   └── hongbao.js              红包模型\n│   ├── shopping\n│   │   ├── activity.js             餐馆活动模型\n│   │   ├── category.js             餐馆分类模型\n│   │   ├── delivery.js             配送方式模型\n│   │   ├── food.js                 食品模型\n│   │   └── shop.js                 餐馆模型\n│   ├── statis\n│   │   └── statis.js               数据统计模型\n│   ├── ugc\n│   │   └── rating.js               评论模型\n│   ├── v1\n│   │   ├── address.js              收获地址模型\n│   │   ├── cart.js                 购物车模型\n│   │   ├── cities.js               城市列表模型\n│   │   ├── payments.js             付款方式模型\n│   │   └── remark.js               备注模型\n│   ├── v2\n│   │   ├── entry.js                食品分类模型\n│   │   ├── user.js                 用户模型\n│   │   └── userInfo.js             用户信息模型\n│   ├── v3\n│   │   └── explain.js              解释说明模型\n│   └── v4\n├── mongodb                         连接数据库\n│   └── db.js\n├── prototype                       基础功能Class\n│   ├── addressComponent.js         与腾讯、百度地图API相关的Class\n│   └── baseComponent.js            底层类\n├── public                          静态资源目录\n├── routes                          路由配置\n│   ├── admin.js                    管理员\n│   ├── bos.js                      订单\n│   ├── eus.js                      用户\n│   ├── index.js                    路由配置主文件\n│   ├── member.js                   会员卡\n│   ├── payapi.js                   付款\n│   ├── promotion.js                红包\n│   ├── shopping.js                 餐馆、食品、Menu\n│   ├── statis.js                   数据统计\n│   ├── ugc.js                      评论\n│   ├── v1.js                       城市、用户、收获地址\n│   ├── v2.js                       登陆、退出\n│   ├── v3.js                       解释说明\n│   └── v4.js                       餐馆\n├── screenshots                     项目截图\n├── views   \n├── .babelrc \n├── .gitignore\n├── API.md                          接口文档\n├── app.js                          基础配置\n├── COPYING                         GPL协议\n├── index.js                        入口文件\n├── package.json\n├── README.md                  \n.\n\n47 directories, 197 files\n\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodertonychan%2Fnode-tony-elm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodertonychan%2Fnode-tony-elm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodertonychan%2Fnode-tony-elm/lists"}