Git Product home page Git Product logo

take-out's Introduction

外卖订餐系统

本项目是使用前后端分离模式开发的WEB外卖订餐系统。

项目后端使用了Gunicorn + Gevent + Django REST framework,数据库使用Redis和SQLite。

项目前端使用了Foundation, Vuejs, Webpack 和 Gulp等。

部署流程

  1. 修改hosts文件,加入一行127.0.0.1 takeout.com记录

  2. 安装nginx,然后在nginx配置中添加以下记录: server { listen 80;

    server_name takeout.com www.takeout.com;

    location /api/ { proxy_pass http://localhost:8000/; }

    location /customer/ { proxy_pass http://localhost:8080/; }

    location /business/ { proxy_pass http://localhost:8081/; }

    location /admin/ { proxy_pass http://localhost:8082/; } }

  3. 重启nginx

  4. 启动后台服务器和前端服务器,后台和前端的启动方法见/backend/README.md和/frontend/README.md

  5. API通过takeout.com/api访问,顾客端通过takeout.com/customer访问,商家端通过takeout.com/business访问,管理员端通过takeout.com/admin访问

License

MIT

take-out's People

Contributors

billbillbillbill avatar wrongthings avatar kulikuly avatar mr-leaves avatar

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.