Group Members: Andy McRae, Anthony Njuguna, Jeannaej Yambing, Sam Ziegler
Link to Heroku Server: https://trulia-real-estate-dashboard.herokuapp.com/
The 2019 Trulia Real Estate Dashboard explores the distribution of real estate sales in the United States listed on Trulia.com. The data comes from the period between September 1st, 2019 and October 31st, 2019. The interactive map displays the price, square feet, and the number of beds and baths in each unit. In addition, there is a bar graph that explores which unit size is the most popular, and a donut graph that shows the distribution of units that were built in each decade.
- Clone the 'trulia-real-estate' repository onto your computer.
- Open pgAdmin and create a new database called 'real_estate_db'.
- Open a query tool in 'real_estate_db' and navigate to the ETL folder in the 'trulia-real-estate' repository.
- Select the file 'queries.sql'.
- Run the create table code to create the 'trulia_real_estate' table.
- Run the create table code to create the 'locations' table.
- Run
select * from trulia_real_estate
andselect * from locations
to ensure that the tables were created. - Open a Jupyter Notebook in the 'trulia-real-estate' repository.
- In the ETL folder, create a text file called 'config.py'. In this file, write down your pgAdmin username, password, localhost, and port.
- Open ‘real_estate_etl.ipynb.' and run all cells.
- Navigate to the static folder and select the 'js' folder.
- In the js folder, create a file called 'config.js'. In this file, write down your API_KEY from mapbox.com so that the leaflet map can run.
- At the base level in the 'trulia-real-estate' repository, create a config.py that contains your pgAdmin password, username, localhost, and port.
- Open GitBash in the 'trulia-real-estate' repository.
- In GitBash, write
source activate PythonData
. - Write
python app.py
to get the flask running. - In Google Chrome, write
http://127.0.0.1:5000/
and then you will have the Flask running.
https://www.kaggle.com/promptcloud/real-estate-data-from-trulia
https://developers.google.com/public-data/docs/canonical/states_csv