测试平台开发-后端开发框架介绍

流程

项目创建

安装核心插件

pip install flask
pip install flask-restful
pip install flask-sqlalchemy
pip install pymysql
pip install flask-jwt-extended

直接启动

if __name__ == '__main__':
    app.run(debug=True)

演练代码

https://github.com/ceshiren/HogwartsLG5

作业

  • 完成TaskService的功能,基本的增删改查
  • 拔高:增加的时候关联TestCase

把你的作业提交到github或者码云,把链接回帖。

相关链接

https://flask.palletsprojects.com/en/1.1.x/

https://flask-restful.readthedocs.io/en/latest/quickstart.html#

https://flask-sqlalchemy.palletsprojects.com/en/2.x/

https://flask-jwt-extended.readthedocs.io/en/latest/

https://flask-cors.readthedocs.io/en/latest/

测试来发第一课练习:

https://github.com/Allison001/homework/tree/master/backend

https://github.com/liujianxiao27/Homework/tree/master/flaskHomework

https://github.com/fanchenlong/HogwartsPytest/tree/main/backend

1 个赞

https://github.com/yangguolong828/LG5Zuoye/tree/main/backend

王刚作业:

测试平台后端开发第一次作业
https://github.com/feillusion/hogwarts/tree/main/homework/backend