Giter Club home page Giter Club logo

ordering-system-weixin's Introduction

Ordering-System-Weixin

公司内部订餐系统微信端v1.0

By Ravior (QQ:1767071791,Mail:[email protected])

Part1.运行环境

  • NodeJS 0.10.18
  • Redis 2.8.9

预览效果 图片

Part2.依赖包

  1. Redis -----redis客户端
  2. express -----NodeJS web框架
  3. ejs -----页面渲染模板
  4. async -----异步转同步
  5. xml2js -----解析xml
  6. xmlbuilder -----生成xml

Part3.怎样运行

修改配置config.js

  • token:微信公共平台token
  • port,redis配置(微信公共平台只支持80端口,可采用nginx作代理)
  • 时间配置用于定制点餐时间

添加用户和菜名

该程序只适合小团队订餐,用户数据和菜名数据都存放在相应的文件中(model/User、model/Food),减少对数据库的依赖。同时,添加用户和菜名都需要重启服务。需要进行用户和菜名动态管理的话,可以自行添加数据库,修改数据处理模块。只支持统一的邮箱地址(默认只支持qq邮箱,可自行修改代码中的正则表达式)

运行程序

node app.js

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

ordering-system-weixin's People

Watchers

James Cloos avatar Jiadong Chen avatar

Forkers

zhoulihe8888

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.