GithubHelp home page GithubHelp logo

cxsjsw-hw6's Introduction

使用指南

依赖

python3
pulp
nodejs > v8.3

如何跑起来

注意:下面这一步由于要安装npmsqlite,很容易出错,如果安装失败并且不好解决,请联系我,我在程序设计思维群里,昵称叫hrsonion

注意:确保运行之前能访问互联网

$ cd be
$ npm install # 这一步出错的话一般重新输几次是可以解决的,我也不知道为什么
$ npm run init
$ python3 pyutils/test_algorithm.py # 方便助教测试我的算法,如果你想自己搞,我也不介意
$ cd ..
$ cd fe
$ npm install
$ cd ..
$ node start.js # 这一步会花掉一段时间,取决于你电脑的性能

关于算法的说明

算法文件是be/pyutil/lp.py

简单解释一下项目结构

be 后端
be/db 数据库文件储存位置(完成初始化之后才会出现)
be/init 初始化脚本
be/pyutils 算法
be/sequelize ORM配置文件
be/app.js 后端主程序
be/utils.js 如名

fe 前端
fe/src 程序源码,里面大部分文件都有用

start.js 帮助你同时开启前后端的脚本 你也可以手动执行里面的内容

其他问题

如果出现其他问题,请联系我,我在程序设计思维群里,昵称叫hrsonion

备注

关于:自动计算出,增加一个菜品将节省多少钱【即增加少量钱就多点一个菜,即可享受套餐优惠】。题目中这句话的描述非常不清晰,我按照“节省”是“增加一个菜品后新订单最低价格相比于原订单最低价格不增加”定义的,这个条件并不是一直可以触发,想测试的话请下一个“豆浆*1”的订单。

作业里的每一项要求全部都完成了,如果你觉得我哪一项没完成,请联系我...

在 MacOS 上经过安装测试

cxsjsw-hw6's People

Watchers

 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.