1、用flask开发restful
https://www.cnblogs.com/vovlie/p/4178077.html
2、解决跨域问题
1)用flask_cors解决跨域(推荐)
https://blog.csdn.net/yannanxiu/article/details/53036508
2)自己写response的header来解决
https://blog.csdn.net/kevin_qq/article/details/51761654
3、表单验证可以使用wtforms
https://www.cnblogs.com/haiyan123/p/8254228.html