diff --git a/README.md b/README.md index b4feee2..7a999ec 100644 --- a/README.md +++ b/README.md @@ -1 +1,94 @@ -"# TODO:README" +

+ + + +QwQ!!!!! + + + +

+ + + +

+ + + +A simple anonymous post api awa! + + + +

+ + + +\## 快速开始~ + + + +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. + diff --git a/api_server.py b/api_server.py index eb38108..bffdb1e 100644 --- a/api_server.py +++ b/api_server.py @@ -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__) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..cd4c0c3 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +Flask>=2.3.3 +Flask-SQLAlchemy>=3.0.5 +Flask-CORS>=4.0.0 +Werkzeug>=2.3.7 \ No newline at end of file