GithubHelp home page GithubHelp logo

william5065 / order_system_by_tornado Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dongfeng916/orderbytornado

0.0 2.0 0.0 4.72 MB

基于tornado后台开发的微信小程序订餐系统

JavaScript 73.14% Python 5.52% TSQL 2.37% CSS 11.40% HTML 6.71% PHP 0.85%

order_system_by_tornado's Introduction

Order_System_By_Tornado

基于tornado后台开发的微信小程序订餐系统

说明

该项目是来源于慕课网上的Python Flask构建微信小程序订餐系统,考虑到tornado的高并发的性能优势,我将后台用tornado进行全部重写,并做了一些功能模块的简化(最主要的就是支付功能,毕竟支付功能只对商户开放)。离线统计任务使用了celery进行定时处理。如果你想在本地测试玩玩,只需要修改如下配置即可:

  • mina/app.js中domain:"http://127.0.0.1:port/api"
  • miniorder/config.py中domain:"http://127.0.0.1:port"
  • miniorder/config.py中设置自己的appid和appkey

运行

python mangae.py --port=yourport

开启离线统计任务

celery -A task.job worker -B --loglevel=info 

关于微信小程序上线问题

  • 微信小程序上线必须要有备案的域名
  • 微信小程序上线使用的服务器必须要有https服务

tornado生产环境部署

如何使用Tornado+Nginx+Supervisor部署生产环境,请参考文章部署Tornado

order_system_by_tornado's People

Contributors

lianglu1024 avatar

Watchers

James Cloos avatar  avatar

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.