Code of CptS451_Online_parseJSON.py which was downloaded and used with files in same directory as directed.
Any of the RouthanaLong_ER_v1.<file_type> files will open the ER diagram. I have the unpaid version of eDraw Max so the PDF file has a big watermark. The SVG file might be easier to view and does not have the watermark. RouthanaLong_relations_v1.sql is of the SQL statements.
pip install flask pip install psycopg2
conn = psycopg2.connect("dbname='milestone1db' user='postgres' host='localhost' port='5433' password='password'")
python server.py
- Create and switch to database
- Run statements from Routhana_Long_RELATIONS_v2.sql
- Open a terminal and navigate to work directory
- Install dependencies with "pip install flask psycopg2"
- Update database connection at global variable "CREDENTIALS = ..."
- Populate DB with "python parseAndInsert"
- Run statements from Routhana_Long_UPDATES.sql
- Run web server with "python server.py"
- To view app, navigate to "http://127.0.0.1:5000/"
- Create and switch to database
- Run statements from Routhana_Long_RELATIONS_v2.sql
- Run statements from Routhana_Long_TRIGGERS.sql
- Open a terminal and navigate to work directory
- Install dependencies with "pip install flask psycopg2"
- Update database connection at global variable "CREDENTIALS = ..."
- Populate DB with "python parseAndInsert"
- Run web server with "python server.py"
- To view app, navigate to "http://127.0.0.1:5000/"
Code in the writeup requires one of the above options be completed.
- Create and switch to database
- Run statements from Routhana_Long_RELATIONS_v2.sql
- Open a terminal and navigate to work directory
- Install dependencies with "pip install flask psycopg2"
- Update database connection at global variable "CREDENTIALS = ..."
- Populate DB with "python parseAndInsert"
- Run statements from Routhana_Long_UPDATES.sql
- Run statements from Routhana_Long_INDEX.sql to create index
- Run web server with "python server.py"
- To view app, navigate to "http://127.0.0.1:5000/"
- Create and switch to database
- Run statements from Routhana_Long_RELATIONS_v2.sql
- Run statements from Routhana_Long_TRIGGERS.sql
- Open a terminal and navigate to work directory
- Install dependencies with "pip install flask psycopg2"
- Update database connection at global variable "CREDENTIALS = ..."
- Populate DB with "python parseAndInsert"
- Run statements from Routhana_Long_INDEX.sql to create index
- Run web server with "python server.py"
- To view app, navigate to "http://127.0.0.1:5000/"