Coder Social home page Coder Social logo

sixteeeentang / campus-canteen-ordering Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hewei2001/campus-canteen-ordering

0.0 0.0 0.0 7.16 MB

HITSZ 2021 年秋季学期「数据库设计」课程实验项目,基于 MySQL+Django 实现校园食堂点餐系统。

License: MIT License

Python 58.69% CSS 10.85% HTML 30.46%

campus-canteen-ordering's Introduction

logo

Campus Canteen Ordering System

HITSZ 2021 年秋季学期「数据库设计」课程实验项目,基于 MySQL+Django 实现校园食堂点餐系统

访问我的博客查看完整开发文档 🚀 :https://hwcoder.top/DB-Project

主要环境:

  • PowerDesigner
  • MySQL Workbench 8.0 CE
  • Python 3.8
  • Django 3.2.8
  • BootStrap 3.3.7
  • Django-simpleui

系统功能 🐍

管理员模块 用户模块

项目结构 📝

django_CCOS
 ├── canteen				//app1
 ├── customer				//app2
 ├── dish				//app3
 │   ├── admin.py
 │   ├── apps.py
 │   ├── migrations
 │   ├── models.py			//数据库模型
 │   ├── tests.py
 │   ├── urls.py
 │   ├── views.py			//实现的视图
 │   └── __init__.py
 ├── django_CCOS
 │   ├── asgi.py
 │   ├── settings.py			//配置文件
 │   ├── urls.py
 │   ├── wsgi.py
 │   └── __init__.py
 ├── manage.py
 ├── media				//图片文件
 │   └── images
 ├── static				//样式文件
 │   ├── bootstrap-3.3.7-dist
 │   ├── css
 │   └── js
 └── templates				//页面模板 
     ├── base.html
     ├── canteen
     │   ├── canteen_base.html
     │   ├── canteen_list.html		//食堂展示
     │   └── shop_list.html		//窗口展示
     ├── customer
     │   ├── index.html
     │   ├── information.html		//完善用户信息
     │   ├── login.html			//登录界面
     │   ├── logout.html		//登出界面
     │   ├── register.html		//注册界面
     │   └── show_info.html		//个人
     └── dish
         ├── dish_base.html
         ├── dish_list.html		//菜品展示
         └── my_order.html		//我的订单

快速开始 🚀

  1. 初始化:

    • 克隆本项目 git clone https://github.com/hewei2001/campus-canteen-ordering.git

    • 卸载原依赖 pip uninstall -y -r requirement.txt

    • 配置新依赖 pip install -r requirements.txt

  2. 数据库准备:

    • 打开 MySQL Workbench 服务器,创建本地数据库 create database django_CCOS

    • 项目参数修改:打开 settings.py 配置文件,找到 MySQL 自定义参数,修改为你自己的配置

  3. 项目启动,进入项目 django_CCOS 目录,执行:

    • python manage.py makemigrations
    • python manage.py migrate
    • python manage.py runserver
  4. 前端访问:http://127.0.0.1:8000

  5. 后台访问:http://127.0.0.1:8000/admin

    • 创建管理员:python manage.py createsuperuser
    • 自行添加食堂、窗口、菜品,否则初始不显示

效果图 😋

image-20211107210032459

image-20211107210104324

image-20211107210220338

image-20211107210124156

image-20211107210146836

鸣谢 💌

感谢 Yiwen-Ding 小朋友!

BTW,如果这个项目帮到了你,就点个 ⭐ 吧 ~

campus-canteen-ordering's People

Contributors

hewei2001 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.