后端项目: https://github.com/tignioj/minimap
获取资源方式:
直接下载编译后的分支 https://github.com/tignioj/minimap-gui/tree/flask-deploy
添加子模块
git submodule add https://github.com/tignioj/minimap-gui/tree/flask-deploy server/web
获取子模块数据
git submodule update --recursive --init --force
project
|server
|MinimapServer.py
|web
|templates
|index.html
|static
|xxx.css
|xxx.js
MinimapServer.py
import flask
app = Flask(__name__,
static_folder='web/static',
template_folder='web/templates')
app.run(host=host, port=5000)