https://github.com/mark24code/scaffold_apiserver_flask
脚手架: 模拟数据后台(类似于mock),Flask实现(python3)
https://github.com/mark24code/scaffold_apiserver_flask
Last synced: 5 months ago
JSON representation
脚手架: 模拟数据后台(类似于mock),Flask实现(python3)
- Host: GitHub
- URL: https://github.com/mark24code/scaffold_apiserver_flask
- Owner: Mark24Code
- Created: 2017-11-21T08:40:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-21T09:22:14.000Z (about 8 years ago)
- Last Synced: 2025-03-17T15:14:50.072Z (11 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# scaffold_apiserver_flask
脚手架: 模拟数据后台(类似于mock),Flask实现(python3)
说明: 一个简单的支持CORS和随机生成数据的后台服务
支持跨域
随机生成数据
使用:
```` python3
1. 在你觉得OK的地方,python3 -m venv <虚拟环境名称,如env3> # 建立虚拟环境
2. source /path/to//bin/active # 激活虚拟环境; 取消激活为任意目录下 deactivate
3. 进入项目目录 cd /path/to/scaffold_apiserver_flask
4. pip install -r requirements.txt # 安装依赖
5. python app.py # 开启服务
6. 访问 http://localhost:5000/data/ 查看预览
````