Skip to content

Commit 1ef2935

Browse files
committed
adjust
1 parent de6f35f commit 1ef2935

File tree

1 file changed

+44
-22
lines changed

1 file changed

+44
-22
lines changed

README.md

Lines changed: 44 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# vue-element-admin-fastapi
2-
vue-element-admin-fastapi
3-
4-
frontend:vue-element-admin
5-
backend:fastapi and Full Stack FastAPI and PostgreSQL
2+
3+
# DEMO
4+
5+
http://49.235.242.224:9527/
6+
7+
8+
# 目录结构
69

710
```
811
root:[vue-element-admin-fastapi]
@@ -53,45 +56,54 @@ root:[vue-element-admin-fastapi]
5356
| |--backend
5457
| |--celery
5558
```
56-
#### socket.io
59+
60+
61+
# socket.io
62+
5763
frontend:socket.io-client
5864
backend:python-socketio
5965
前后端版本兼容请去官网检查,我使用的已经是最新的版本
6066
前端:socket.io-client version 3.X
6167
后端:python-socketio version 5.X
6268

63-
#### celery
69+
# celery
70+
6471
celery-redis
6572
start celery:sh backend\app\worker-start.sh
6673
you can use swagger : http://49.235.242.224:8080/docs api:/utils/test-celery try send email by celery,just post your email address
6774

68-
#### middleware
75+
# middleware
6976

7077

71-
#### EXCEL敏捷开发
78+
# EXCEL敏捷开发
79+
7280
axios发送get请求携带token,通过访问header['content-disposition']获取文件名(需要后端设置Access-Control-Expose-Headers)
7381

7482
frontend:frontend\vue-element-admin-fastapi\frontend\src\utils\ruoyi.js function download
75-
backend:backend\app\app\api\api_v1\report\\_\_init\_\_.py
76-
7783

84+
backend:backend\app\app\api\api_v1\report\\_\_init\_\_.py
7885

79-
#### DEMO:http://49.235.242.224:9527/
8086

8187

88+
# 开发规则整理:
8289

83-
#### 开发规则整理:
8490
1.模块化
91+
8592
2.router.include_router下对根路由的RESTFUL请求需要结尾加"/",这个需要前端配合,其他都不需要加"/"
8693

8794

88-
#### 如何快速本地启动
89-
##### python packages
95+
# 如何快速本地启动
96+
97+
# python packages
98+
9099
```
91100
cd vue-element-admin-fastapi\backend\app
92101
pip install -r requirements.txt
93102
```
94-
##### ip及数据库连接
103+
104+
105+
# ip及数据库连接
106+
95107
```
96108
frontend
97109
#websocket连接的ip
@@ -109,8 +121,11 @@ vue-element-admin-fastapi\backend\app\app\core\config.py
109121
#celery的数据库连接
110122
vue-element-admin-fastapi\backend\app\app\celery_app\celery_app.py
111123
```
112-
##### 数据准备
124+
125+
# 数据准备
126+
113127
vue-element-admin-fastapi\backend\app\prestart.sh
128+
114129
```
115130
#检查数据库连接
116131
python /app/app/db_pre_start/backend_pre_start.py
@@ -120,23 +135,30 @@ alembic upgrade head
120135
#初始化数据
121136
python /app/app/initial_data.py
122137
```
123-
##### 开发环境启动
138+
139+
140+
# 开发环境启动
141+
142+
124143
```
125144
frontend:npm run dev
126145
backend:python main.py
146+
127147
celery:见启动脚本
128148
```
129149

130150

131-
#### 联系方式:
132-
QQ:619511821
151+
# 日志统计
133152

134-
#### 其他
135-
##### 日志统计
136153
私下用两台服务器搭了hadoop+hive+spark。log存到了hive中并用spark统计了访问频率,使用airflow进行任务调度
137154
但是考虑到项目简洁纯粹,所以并没有提交。
138155
把结果放到了生产,给大家看看结果,尤其是异常API访问,看看经常被扫描的API有哪些
139156

140-
#### TODO
157+
# TODO
158+
141159
sequnce在init_data后,没有根据数据id restart
142160
但是目前最近在写强化学习模型所以没空改,暂时记录
161+
162+
# 原作者联系方式
163+
164+
QQ:619511821

0 commit comments

Comments
 (0)