Giter VIP home page Giter VIP logo

zerorunner's Introduction

🌈 介绍

后端

  • 基于 python3 + fastApi + celery + sqlalchemy + redis

  • 使用软件版本

  • python version 3.9.6

  • mysql version 5.7.43

  • redis version 6.0.9

前端

  • 基于 vite + vue3 + element-plus

  • 使用软件版本

  • node version 16.22.0

  • vue version 3.2.45

  • element-plus version 2.2.26

💒 平台地址地址

⛱️ 线上预览

🚧 项目启动初始化-后端

# 克隆项目
git clone https://github.com/baizunxian/zerorunner.git

# 数据库脚本 将内容复制数据库执行 需要新建数据库 zerorunner
backend/script/zerorunner.sql  

# MySQL版本 8.0.23 查询问题
# 问题 which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
# 执行一下语句
set @@global.sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';


# 修改对应的数据库地址,redis 地址
backend/config.py
# 或者
backend/.env # 环境文件中的地址修改

# 安装依赖
pip install -r  requirements

# 运行项目 zerorunner/backend 目录下执行
python main.py

# 异步任务依赖 celery 启动命令

#  windows 启动,只能单线程 zerorunner/backend 目录下执行
celery -A celery_worker.worker.celery worker --pool=solo -l INFO 

# linux 启动
elery -A celery_worker.worker.celery worker --loglevel=INFO -c 10 -P solo -n zerorunner-celery-worker

# 定时任务启动
celery -A celery_worker.worker.celery beat -S celery_worker.scheduler.schedulers:DatabaseScheduler -l INFO

# 定时任务心跳启动
celery -A celery_worker.worker.celery beat  -l INFO 

🚧 项目启动初始化-前端

# node 版本
node -v 
v16.22.0
  • 复制代码(桌面 cmd 运行) npm install -g cnpm --registry=https://registry.npm.taobao.org
  • 复制代码(桌面 cmd 运行) npm install -g yarn
# 克隆项目
git clone https://github.com/baizunxian/zerorunner.git

# 进入项目
cd zerorunner/frontend

# 或者
yarn install

# 修改配置
.env.development # 开发环境
.env.production # 生产环境

VITE_API_BASE_URL # 后端接口地址
VITE_API_PREFIX # 后端接口前缀
VITE_WBE_SOCKET_URL # websocket 地址

# 运行项目
yarn dev

# 打包发布
yarn build

💯 学习交流加 微信 群

  • 或者添加我的微信,我可以拉你们进入交流群

💌 支持作者

如果觉得框架不错,或者已经在使用了,希望你可以去 Github 帮我点个 ⭐ Star,这将是对我极大的鼓励与支持, 平台会持续迭代更新。

请我喝杯咖啡

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.