Modify:README.md
This commit is contained in:
95
README.md
95
README.md
@@ -1 +1,94 @@
|
||||
"# TODO:README"
|
||||
<h3 align="center">
|
||||
|
||||
|
||||
|
||||
QwQ!!!!!
|
||||
|
||||
|
||||
|
||||
</h3>
|
||||
|
||||
|
||||
|
||||
<p align="center">
|
||||
|
||||
|
||||
|
||||
<span>A simple anonymous post api awa!</span>
|
||||
|
||||
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
\## 快速开始~
|
||||
|
||||
|
||||
|
||||
0、Clone本仓库
|
||||
|
||||
|
||||
|
||||
'git clone https://github.com/Sycamore-Whisper/backend.git'
|
||||
|
||||
|
||||
|
||||
1、创建一个python虚拟环境
|
||||
|
||||
|
||||
|
||||
'python -m venv post-api'
|
||||
|
||||
|
||||
|
||||
激活虚拟环境!
|
||||
|
||||
|
||||
|
||||
Windows:'post-api\\Scripts\\activate'
|
||||
|
||||
|
||||
|
||||
Linux/MacOS:'source post-api/bin/activate'
|
||||
|
||||
|
||||
|
||||
2、安装依赖
|
||||
|
||||
|
||||
|
||||
'pip install -r requirements.txt'
|
||||
|
||||
|
||||
|
||||
3、运行!
|
||||
|
||||
|
||||
|
||||
'python api\_server.py'
|
||||
|
||||
|
||||
|
||||
后端API已部署完成喵!接下来,请调用/init接口进行初始化
|
||||
|
||||
|
||||
|
||||
\## API文档
|
||||
|
||||
|
||||
|
||||
~~前往{BASE\_URL}/api-docs查看调用方法awa!~~
|
||||
|
||||
|
||||
|
||||
API文档暂时未完成呜呜。
|
||||
|
||||
|
||||
|
||||
\## License
|
||||
|
||||
|
||||
|
||||
This project is licensed under the MIT License.
|
||||
|
||||
|
||||
@@ -8,8 +8,6 @@ from flask import send_file
|
||||
from werkzeug.utils import secure_filename
|
||||
import os
|
||||
import shutil
|
||||
import threading
|
||||
import time
|
||||
|
||||
# === Flask 初始化 ===
|
||||
app = Flask(__name__)
|
||||
|
||||
4
requirements.txt
Normal file
4
requirements.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Flask>=2.3.3
|
||||
Flask-SQLAlchemy>=3.0.5
|
||||
Flask-CORS>=4.0.0
|
||||
Werkzeug>=2.3.7
|
||||
Reference in New Issue
Block a user