diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000000000000000000000000000000000000..ce4772705a6cbed9ebabc3cf5ddd3ebcb63cc5ca --- /dev/null +++ b/README.en.md @@ -0,0 +1,55 @@ +# Python_Web_Flask + +This is a house information display website built using the Flask framework, integrated with Bootstrap and ECharts to achieve data visualization and an excellent user interface. + +## Features + +- Homepage displays a list of properties +- Detailed page shows property information +- Charts display house price distribution (bar chart, pie chart, scatter plot, line chart) +- Supports keyword search +- Supports pagination + +## Directory Structure + +- `app.py`: Application startup file +- `settings.py`: Contains application configurations +- `models.py`: Data model definitions +- `index_page.py`: Homepage routing +- `list_page.py`: List page routing +- `detail_page.py`: Detail page routing +- `static/`: Static file directory, containing styles and scripts + +## Installation + +1. Install dependencies + + ```bash + pip install -r requirements.txt + ``` + +2. Initialize the database + + Please ensure the correct database URI is configured in `settings.py`, and initialize the database within the Flask application. + +3. Run the application + + ```bash + python app.py + ``` + +## Usage + +- Access the homepage: http://127.0.0.1:5000/ +- Search properties: Enter keywords on the homepage to search +- Browse list: Click the navigation bar to access the property list +- View details: Click on a property image or link on the homepage or list page +- Data charts: View house price distribution charts on the detail page + +## Contribution + +Code contributions are welcome, please submit issues or pull requests. + +## License + +MIT License. For details, please check the `static/LICENSE` file. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ac1435f2e193248cac20f4944884183f366b1a9b --- /dev/null +++ b/README.md @@ -0,0 +1,57 @@ + + +# Python_Web_Flask + +这是一个使用 Flask 框架构建的房屋信息展示网站,集成了 Bootstrap 和 ECharts 实现了数据可视化和良好的用户界面。 + +## 特性 + +- 首页展示房源列表 +- 详细页面显示房源信息 +- 图表展示房价分布(柱状图、饼图、散点图、折线图) +- 支持关键词搜索 +- 支持分页 + +## 目录结构 + +- `app.py`: 应用的启动文件 +- `settings.py`: 包含应用配置 +- `models.py`: 数据模型定义 +- `index_page.py`: �` +- `list_page.py`: 列表页面路由 +- `detail_page.py`: 详情页面路由 +- `static/`: 静态文件目录,包含样式和脚本 + +## 安装 + +1. 安装依赖 + + ```bash + pip install -r requirements.txt + ``` + +2. 初始化数据库 + + 请确保在 `settings.py` 中配置了正确的数据库 URI,并在 Flask 应用中初始化数据库。 + +3. 运行应用 + + ```bash + python app.py + ``` + +## 使用 + +- 访问首页: http://127.0.0.1:5000/ +- 搜索房源: 在首页输入关键词搜索 +- 浏览列表: 点击导航条进入房源列表 +- 查看详情: 点击首页或列表页的房源图片或链接 +- 数据图表: 在详细页面查看房价分布图表 + +## 贡献 + +欢迎贡献代码,提交 issue 或者 pull request。 + +## License + +MIT License,详情请查看 `static/LICENSE` 文件。 \ No newline at end of file