forked from superforecaster/cs-12200-project
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathEXEC.TXT
23 lines (19 loc) · 773 Bytes
/
EXEC.TXT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
INSTRUCTIONS TO EXECUTE THE PRODUCT
BACKEND
FRONTEND
BACKEND (You do not need this if you have the copy of our VM in the disk. It's only for first time users)
Download repository
Change URL in scripts of backend
python3: run crime_process.py
python3: run csv_process.py
inside mini_db repo: sqlite3 mini_db < create_db.sql
python3: run dataframe_lasso.py
python3: run lasso_model.py
FRONTEND (You need this to run our project even if you have a copy of our VM in the disk):
How to run the front end website using flask?
1. Go to the terminal
2. Go to the frontend folder (cd frontend)
3. run command: export FLASK_APP=flask_frontend_crime.py
4. run command: flask run
5. Go to your browser and type the address: 127.0.0.1:5000/
6. Voila! Play around with the website :)