Code Monkey home page Code Monkey logo

pressure's Introduction

Pressure

准备Python环境

  • 安装Python>=3.10
  • 安装依赖
    • pip3 install -r requirements.txt
  • 安装vue环境(最好是不通过下方命令,自己手动安装,避免重复安装)
    • sh vue_requirements.sh

首次启动项目

  • 初始化及打包前端项目(在前端项目v_pressure目录下执行下方命令)

  • 注:如果该目录为空,需要在github上将前端v_pressure项目down下来后,将里面的内容复制到该目录下

    • 下载前端依赖

      npm install
      注:执行完后v_pressure目录下会新增node_modules目录,即代表成功
      
    • 打包前端项目

      npm run build
      注:执行完后v_pressure目录下会新增dist目录,即代表成功
      
  • 初始化后端服务(在项目根目录下即Pressure目录下执行下方命令)

    • 启动后端服务

      python3 manage.py runserver
      
    • 创建后台数据库

      python manage.py migrate
      
    • 创建超级管理员

      manage.py createsuperuser
      
    • 启动消息队列中间件(不使用下面命令,手动执行下项目里面的task_mq.py也行)

      python3 /Users/wangjie/Pressure/MyApp/task_mq.py
      注:想用几个队列就启动几次(正常启动1个即可,可以理解为施压机,启动一个就代表所有的消息都在一个队列里处理,启动多个就代表多个队列同时处理消息)
      
  • 首次启动项目后,后续再启动项目只需要执行"启动后端服务"和"启动消息队列中间件"的命令即可

项目结构

img.png

pressure's People

Contributors

wangjie-jason avatar

Stargazers

rain avatar  avatar  avatar jaylu2018 avatar  avatar

Watchers

 avatar  avatar

Forkers

jaylu2018

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.