Skip to content

This is the final project for the Database System class, which is a apartment renting website using unsupervised machine learning to make recommendation decision based on crime rate and geographical locations.

Notifications You must be signed in to change notification settings

SCHJonathan/ICEMapping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS411Project

Important (Updated July 27)

  1. This project's database is using the latest tidychampaign.csv and geo.csv file uploaded by Han Bro. If you have the conflict, go to sql workbench, drop the table, and reimport the tidychampaign.csv. It should solve the database conflict later on.

  2. There is a list of new package I used to build this website. Please install those:

pip install django-crispy-forms
pip install django-bootstrap-pagination
pip install django-bootstrap-toolkit
  1. Please make sure you have imported all the csv files in the folder CSVDataFile via SQL workbench. For the CommentDB file, after you import it, you need to change the attribute type of geoid from int(11) to bigint(20). If you don't know to alter the table. See this link: https://stackoverflow.com/questions/33094174/how-to-change-update-column-name-in-table-using-mysql-workbench

  2. If you create a new databse table, for the sake of convenience, you can create a sample .csv file like CommentDB.csv with some random data in it. Upload your sample .csv file in the CSVDataFile.

Integration steps:

To integrate this project, run the following command:

  1. Clone this project to your local machine
git clone git@github.com:Jonathan-UIUC/ICEMapping.git
  1. Go to the project directory
cd ICEMapping
  1. Do all the stuffs in the Importent section.

  2. Migrate the changes on the databases

python manage.py makemigrations
python manage.py migrate
  1. Run the server
python manage.py runserver

About

This is the final project for the Database System class, which is a apartment renting website using unsupervised machine learning to make recommendation decision based on crime rate and geographical locations.

Topics

Resources

Stars

Watchers

Forks