{"id":25602538,"url":"https://github.com/zhuruili/easyhouse","last_synced_at":"2026-05-13T20:31:59.974Z","repository":{"id":278540388,"uuid":"932665286","full_name":"zhuruili/EasyHouse","owner":"zhuruili","description":"A Flask based intelligent rental web application.","archived":false,"fork":false,"pushed_at":"2025-03-09T08:38:46.000Z","size":17985,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T09:25:33.060Z","etag":null,"topics":["flask","html-css-javascript","python-web"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhuruili.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-14T09:46:56.000Z","updated_at":"2025-03-09T08:48:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9174007-5140-4bf5-949f-5df0a5af9db0","html_url":"https://github.com/zhuruili/EasyHouse","commit_stats":null,"previous_names":["zhuruili/easyhouse"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhuruili/EasyHouse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuruili%2FEasyHouse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuruili%2FEasyHouse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuruili%2FEasyHouse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuruili%2FEasyHouse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhuruili","download_url":"https://codeload.github.com/zhuruili/EasyHouse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhuruili%2FEasyHouse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32999215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","html-css-javascript","python-web"],"created_at":"2025-02-21T17:01:27.287Z","updated_at":"2026-05-13T20:31:59.969Z","avatar_url":"https://github.com/zhuruili.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Easy House\n\n![Language](https://img.shields.io/badge/Language-Python-blue)\n![flask](https://img.shields.io/badge/package-Flask-black)\n![database](https://img.shields.io/badge/database-MySQL-green)\n![license](https://img.shields.io/badge/License-MIT-red)\n\n一个基于Flask的智能租房Web应用，这是我学习Flask的入门项目，或许也能帮你入门\n\nA Flask based intelligent rental web application\n\n---\n\n## 效果展示\n\n- **标题页**\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"/images_in_readme/main.png\" alt=\"标题页\"\u003e\n\u003c/div\u003e\n\n- **搜索功能**\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"/images_in_readme/search.png\" alt=\"搜索功能\"\u003e\n\u003c/div\u003e\n\n- **推荐房源**\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"/images_in_readme/houselist.png\" alt=\"推荐房源\"\u003e\n\u003c/div\u003e\n\n- **详情页**\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"/images_in_readme/detail_1.png\" alt=\"详情页\"\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"/images_in_readme/detail_2.png\" alt=\"详情页\"\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"/images_in_readme/detail_3.png\" alt=\"详情页\"\u003e\n\u003c/div\u003e\n\n---\n\n## 如何使用\n\n### 环境搭建\n\n你可以使用`pip`安装项目所需要的依赖：\n\n```bash\npip install -r requirements.txt\n```\n\n### 数据准备\n\n既然是“智能租房”项目，那么显然需要房源数据，而为了方便，本项目使用的示例数据来源于网络。数据内容可以查看`database`文件夹下的`house.sql`文件，其中包含建库语句与许多的插入语句\n\n首先在`MySQL`建立一个新的数据库，然后导入`house.sql`脚本，注意在执行脚本之前修改脚本中第一行的数据库名称为你自己建立的数据库名称，我这里的名字叫`easyhouse`\n\n当脚本中的内容全部执行完毕之后，查看数据表中的内容，如果数据无误则数据准备完成\n\n### 隐私保护\n\n在连接数据库的代码中你会看到其中的URI中包含了你的数据库的用户名和密码，这显然不应该直接写在代码里，因此这里我借助`dotenv`以加载环境变量的方式对其进行保护，你可以在项目的根目录下新建`.env`文件并在其中写入你自己的数据库账户信息：\n\n```python\nDB_USERNAME=YOUR_USERNAME\nDB_PASSWORD=YOUR_PASSWORD\nDB_DATABASE=YOUR_DATABASE\n```\n\n### 运行文件\n\n运行根目录下的`app.py`文件，然后打开终端输出的网址`http://127.0.0.1:5000`即可看到项目的运行效果\n\n---\n\n## 参考资料\n\n- 《Python Web开发项目教程（Flask版）》,黑马程序员,人民邮电出版社,2023/1\n\n## BUG\n\n\u003e[!note]\n\u003e我根据书上的教程一步步走时发现`登陆`功能存在点击会让界面卡死的BUG，我并没有系统性的学过JS，暂时不知道是什么原因，如果你也遇到了相同的问题并且知道解决方案那么恳请赐教\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhuruili%2Feasyhouse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhuruili%2Feasyhouse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhuruili%2Feasyhouse/lists"}