Giter Club home page Giter Club logo

2020sjkks's Introduction

微信小程序校园外卖系统-数据库课程设计

基本功能😄

学生客户可以在查看在售商品的各种信息,选择商品后下单,在系统内查看订单状态(制作中,派单中,接单中等),在订单完成后可以对购买商品进行评分评价,在用户界面完善自身地址,头像,电话等相关信息。

商家可以增加,删除,修改出售的商品,接单,制作完成后派单给想要进行兼职工作的系统用户,查看商家的各种统计信息。

学生配送员可以在系统中查看商家在发布的各种派单信息,接单后将外卖送至客户手中。

小程序界面预览👀

买家页面

imgimg

卖家页面

imgimg

实现方式(微信小程序+flask+mysql)👨🏼‍💻

本项目采用前后端分离的方式开发。由于Flask框架具有轻巧,简洁等明显优势,我们采用其作为后端框架。微信小程序利用POST方式传递参数到服务器后端,后端接受小程序的表单信息,在数据库进行相应的增加,删除,查询,修改操作,并将结果通过JSON数据返回至微信小程序前端。

数据库采用MySQL,首先通过Navicat软件进行基本的创建表,创建视图,创建触发器,设置完整性约束。服务器后端通过pymysql进行对数据库的操作,统计分析页面使用Echarts实现。

如何配置🔧

服务端配置

  • 用户需要在服务器上安装mysql,进入mysql,创建一个新的数据库meituan

    create database meituan;

    然后导入我们提供的数据库初始化脚本/server/Database/setup.sql

    source yourpath/2020sjkks/server/Database/setup.sql
  • server/run.py 的开头设置数据库参数,示例:

    DATABASE='meituan'#数据库名称
    USER='root'#数据库用户
    PASSWORD='sjkks'#数据库密码
    img_path = 'yourpath/2020sjkks/server/imgs/'图片缓存文件夹 注意最后带有/
  • 运行run.py

    python3 run.py

    到这里为止服务器初始化成功。

小程序配置

  • app.js中设置服务器地址即可。
  • 管理帐号默认为 用户名:管理员 密码:12345

Enjoy and give star!😗

2020sjkks's People

Contributors

hongwei7 avatar myownbourne 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.