The House Price Visualization Information Platform is a web application developed using Django and Docker that allows users to visualize and analyze house prices in Shanghai, China.
Before you can run the House Price Visualization Information Platform, make sure you have the following prerequisites installed on your system:
- Python (Python 3.6 or higher)
- Django (Django 3.0 or higher)
- Docker
- Docker Compose
Follow these steps to set up and run the server:
-
Clone the repository to your local machine:
git clone https://github.com/lphlch/DatabaseProjectDesign cd house-price-visualization
-
Create a
.env
file in the project root directory and configure the environment variables.Edit the
.env
file to set your desired environment variables, such as the database settings and secret key. -
Navigate to the
/CityPrice/
directory:cd CityPrice
-
Create a Python virtual environment (optional but recommended):
python -m venv venv
-
Activate the virtual environment:
-
On Windows:
venv\Scripts\activate
-
On macOS and Linux:
source venv/bin/activate
-
-
Install the required Python packages from the
requirements.txt
file:pip install -r requirements.txt
-
Return to the project root directory:
cd ..
-
Build and run the Docker containers using
docker-compose
:docker-compose up --build
This command will start the Django web application, a PostgreSQL database, and any other services defined in the
docker-compose.yaml
file. -
Once the containers are up and running, you can access the House Price Visualization Information Platform in your web browser.
Here are some basic usage instructions for the House Price Visualization Information Platform:
- Map: After logging in, you will be directed to the map where you can search for house prices in Shanghai and view visualizations and analysis.
- Tables: Explore different charts to understand what will influence the house price trends in Shanghai.
To stop and remove the Docker containers, use the following command:
docker-compose down
This project is licensed under the GPL-3.0 License - see the LICENSE file for details.
For any questions or support, please contact lphlch@outlook.com.