ST/README.md

239 lines
2.1 KiB
Markdown
Raw Permalink Normal View History

2024-08-26 16:05:26 +08:00
# APP
## PATH
### UI
### Server
#### thirdparty
##### wkhtmltopdf
#### addons
##### base
###### database
* data
* i18n
* models
* res.partner
* ir.module.module
* security
###### alembic
##### .....
##### ......
#### app.log
#### app.conf
#### requirements.txt
#### main.py
### venv
### README.md
### setup
#### 启动服务器
#### 关闭服务器
#### 初始化迁移
#### 迁移脚本
#### 执行迁移
## PATH
### UI
### Server
#### thirdparty
##### wkhtmltopdf
#### addons
##### base
###### database
* data
* i18n
* models
* res.partner
* ir.module.module
* security
###### alembic
##### .....
##### ......
#### app.log
#### app.conf
#### requirements.txt
#### main.py
### venv
### README.md
### setup
#### 启动服务器
#### 关闭服务器
#### 初始化迁移
#### 迁移脚本
#### 执行迁移
## pip
### fastapi
#### app = FastAPI()
##### 模块创建应用实例
#### Header
##### 类型注解获取请求头
#### Cookie
##### Cookie 数据
#### responses
##### RedirectResponse
###### 实现重定向
#### HTTPException
##### 返回状态码
#### JSONResponse
##### 自定义响应头
#### Query
##### 验证查询参数、路径参数
#### Depends
##### 预处理 后处理
#### Form
##### 表单上传
#### UploadFile
##### 文件上传
### uvicorn[standard]
#### httptools
##### 处理请求和响应
#### h11
##### 扩展http交互
#### uvloop
##### 异步循环事件
#### websockets
##### 全双工
### python-multipart
#### 表单校验
### pydantic
#### from pydantic import BaseModel
##### 用于数据验证和序列化
#### Field
##### 表单字段定义
### asyncio
#### 异步
### typing
#### Optional
##### 指定必须数据类型
#### Union
##### 支持多种数据类型
### sqlalchemy
#### 操作数据库
### passlib
#### 密码算法
### pyJWT
#### 鉴权验证
### alembic
#### 数据库迁移
## command
### git init
### git add .
### git commit -m "lqs"
### git remote add origin http://8.134.237.70:2023/lqs/ST5-fastapi-vue3.git
### git push -u origin main