flask-and-mongo

时间:2021-05-10 11:11:11
【文件属性】:
文件名称:flask-and-mongo
文件大小:6.65MB
文件格式:ZIP
更新时间:2021-05-10 11:11:11
HTML 烧瓶和蒙古 介绍 这个应用程序为我提供了一个平台,用于试验Flask及其附带的Web开发元素(例如Jinja2模板引擎)。 MongoDB是首选数据库,因为它是一个小型项目,不包含大量的集合和数据。 此外,使用类似JSON的文档很容易实现。 整体架构 整体Web应用程序框架:Flask前端框架:HTML,CSS和Jinja2(注入python代码和变量)后端数据库:MongoDB WSGI服务器:Gunicorn 用于Web服务器和python应用程序之间的通信 终点 方法:POST端点:/ createuser用法:创建一个新用户备注:将用户转移到可以在/ friends端点中查看的朋友 方法:GET端点:/ friends用法:查看朋友/用户列表 方法:DELETE端点:/ deleteuser /用法:从列表中删除特定的朋友/用户 方法:POST端点:/ journal用法:创建
【文件预览】:
flask-and-mongo-master
----.gitignore(2KB)
----templates()
--------expand_csv.html(466B)
--------friends.html(849B)
--------upload_csv.html(1KB)
--------login.html(464B)
--------index.html(2KB)
--------journal.html(1KB)
--------createuser.html(579B)
--------user.html(2KB)
--------base.html(3KB)
----requirements.txt(407B)
----.DS_Store(6KB)
----static()
--------pictures()
--------css()
----server.py(7KB)
----runtime.txt(12B)
----README.md(2KB)
----uploads()
--------pokemon.csv(10KB)
----index.html(809B)
----f3env()
--------bin()
--------pyvenv.cfg(114B)
--------pyvenv 2.cfg(114B)
----.vscode()
--------settings.json(228B)
----csv_file.csv(34KB)
----Procfile(24B)

网友评论