Commit 3832efdc by 周田

feat:使用 poetry 管理项目,添加 readme

parent 1c011d0c
## 介绍
- master 分支,主要为后端接口
- fh 分支,为界面
![1692668065114](image/README/1692668065114.png)
各个文件夹或文件作用
- chat:测试 websocket 的模块
- device_communication:device 通信参数模块
- device_data_op:对 device 已有的表的操作模块
- download_db:测试 下载 sqlite 文件模块
- frontend:前端文件夹
- mqtt:测试 mqtt 连接与发送内容的模块
- protocol_version_manage:协议版本控制模块
- scripts_generate:测试 脚本生成模块
- vue_django:django 项目主模块
- db.sqlite3:没用
- manage.py:django 项目启动文件
- poetry.lock,pyproject.toml:poetry 的管理文件
- xdc.sqlite:device 数据库
## 安装依赖
1. 在 conda 创建的虚拟环境中下载 poetry
```
pip install poetry
```
2. 使用 poetry 命令下载依赖
```
poetry install
```
## 运行项目
使用 `python manage.py runserver` 运行项目(目前运行项目只有接口,可能只能通过接口调试工具来测试)
This diff is collapsed. Click to expand it.
[tool.poetry]
name = "vue-django"
version = "0.1.0"
description = ""
authors = ["ZutJoe <zhout50@163.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.9"
django = "3.2.19"
djangorestframework = "^3.14.0"
channels = {extras = ["daphne"], version = "^4.0.0"}
drf-yasg = "^1.21.7"
paho-mqtt = "^1.6.1"
protobuf = "3.20.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment