Git Product home page Git Product logo

chef-assist's Introduction

chef-assist

功能说明

  • 三种用户角色:餐厅服务员,后厨人员,管理员
  • 服务员负责点菜录入,订单的建立和完成,菜品状态跟踪
  • 后厨人员只负责看板做菜,做完菜更新菜品状态
  • 管理员可以做菜品,厨位,餐桌,人员,订单等相关的一切操作

硬件要求

有浏览器能上网的任何终端皆可,手机,平板,电脑都行

适用场景

餐馆,酒店

技术

后台

java, springboot, mybatis, liquibase,mysql...

前端

VueJs框架之quasar

视频demo

视频演示

厨房视图

点菜传菜一体系统 厨房视图

餐桌视图

餐桌视图

菜品管理

菜品管理

用户管理

用户管理

订单详情

订单详情

历史订单

历史订单

程序运行指南

后台

数据库

首先新建数据库chef_assist:

create database if not exists chef_assist  default charset utf8 collate utf8_general_ci;

启动Springboot程序:

使用intellij打开pom.xml, open as project

修改数据库用户名和密码,在application-*.properties中的如下两行:

spring.datasource.username=root
spring.datasource.password=Passw0rd

在ChefAssistApplication类上右键Debug或者Run启动程序

程序使用了liquibase会自动在刚才创建的数据库中初始化表结构和一些必要数据,例如admin用户

admin用户的默认密码也为admin,默认服务端口号为8686,如果需要可手动更改(但需要考虑前端做相应的适配)

启动前端程序

前端用的是基于vuejs的quasar框架,在启动前需要安装nodejs(包括npm包管理器),和quasar-cli(参考:http://www.quasarchs.com/quasar-cli/installation)

在安装好上述依赖后,进入chefassist-web目录,先执行npm install,成功后再执行:

quasar dev

一切顺利后,则可在浏览器中浏览http://localhost:8685/, 即默认前端端口号为8685

跨域问题

后台是做了跨域限制访问的,只允许localhost:8685的请求,具体配置在application-*.properties中的

origin.base=http://localhost:8685

chef-assist's People

Contributors

dependabot[bot] avatar fengchangfight avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

chef-assist's Issues

手机登陆失败

跨域的配置,改成通配符也不行,请问如何可以使得手机访问成功?(在一个局域网,就手机热点)

无法完成跨域请求

我在修改origin.base=后,前端得到的提示是这样的
Access to XMLHttpRequest at 'http://192.168.1.15:8686/login' from origin 'http://192.168.1.15:8685' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '
' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
这个模式下无法使用*通配符,有什么其他的方案吗,只能使用localhst,使用ip地址后也提示我账号密码错误

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.