# flask-socketio **Repository Path**: game-server/flask-socketio ## Basic Information - **Project Name**: flask-socketio - **Description**: python flask socket.io 框架 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2019-06-05 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 项目结构如下 ``` trade |_app |_api | |_rest rest接口,通过blueprint注册到trade/__init__.py中的app里, | | 使用注解@rest.route可以设置路由 | |_websocket websocket接口,通过blueprint注册到trade/__init__.py中的app里, | 使用注解@ws.route设置路由 |_models 数据库相关 |_config.py app的配置 |_manage.py 使用flask-script管理应用 ``` # 启动命令如下: ``` python manage.py runserver ``` # 查看命令使用 ``` python manage.py --help ``` flask_pymongo文档: https://flask-pymongo.readthedocs.io/en/latest/ # 安装 ## 创建虚拟环境 python -m venv venv ## 安装依赖 pip install -r requirements.txt ## 导出依赖 pip freeze > requirements.txt