zero-to-app:使用 Python 和 MongoDB 在 30 分钟内从零到应用程序

时间:2024-07-18 17:50:44
【文件属性】:

文件名称:zero-to-app:使用 Python 和 MongoDB 在 30 分钟内从零到应用程序

文件大小:145KB

文件格式:ZIP

更新时间:2024-07-18 17:50:44

JavaScript

使用 Python 和 MongoDB 在 30 分钟内从零到应用程序 构建一个类似于 Yelp 的应用程序,它可以查找纽约市的咖啡馆,并让您对它们进行评分和评论。 您将看到使用开源工具和公共数据集构建简单应用程序的速度有多快。 来自咖啡馆数据。 改编自我用于演示 MongoDB 2.6 的新“minDistance”运算符。 设置 安装并运行本地服务器。 在requirements.txt安装 Python 包。 加载咖啡馆数据并为其编制索引: mongoimport --drop --collection cafes sidewalk-cafes.csv mongo --eval "printjson(db.cafes.createIndex({location: '2dsphere'}))" 跑步 从项目目录运行python server.py 。 关于 作者:A. Je


【文件预览】:
zero-to-app-master
----server.py(923B)
----templates()
--------index.html(3KB)
----sidewalk-cafes.json(142KB)
----LICENSE(10KB)
----static()
--------bootstrap()
--------near.js(6KB)
--------jquery-2.0.3.min.js(82KB)
--------handlebars.js(71KB)
----requirements.txt(29B)
----.gitignore(303B)
----README.md(949B)

网友评论