Skip to content

Latest commit

 

History

History
79 lines (47 loc) · 3.53 KB

File metadata and controls

79 lines (47 loc) · 3.53 KB

APP DESIGN

This app runs queries against posgresql database then get the result and show it to the user.

HOW TO RUN

Use a terminal on Linux or Mac or install the terminal that provided with git on Windows. https://git-scm.com/ Download and install VirtualBox from https://virtualbox.org/ Download and install Vagrant from https://www.vagrantup.com/ Download and unzip the file from https://github.com/udacity/fullstack-nanodegree-vm Using the terminal, change to the extracted directory. Then change to the vagrant directory. Download this file: https://d17h27t6h515a5.cloudfront.net/topher/2016/August/57b5f748_newsdata/newsdata.zip. Then extract it. Then copy the newsdata.sql to the vagrant directory. Inside the vagrant directory and using the terminal run: vagrant up. Then run Vagrant ssh. Run: psql -d news -f newsdata.sql Download and install python 2 from https://www.python.org/ Download and install psycopg2 from http://initd.org/psycopg/docs/install.html Download and unzip the file of this repository. Copy report_tool.py to the vagrant directory. Within the vagrant directroy and using your terminal run: python report_tool.py

ATTRIBUTIONS

https://www.google.com/

https://www.google.com.eg/

https://www.postgresql.org/

https://www.postgresql.org/docs/9.1/static/functions-string.html

https://stackoverflow.com/a/7415245 by: Mohamed Saligh.

https://dba.stackexchange.com/a/24779 by: matadur.

https://stackoverflow.com/a/772439 by: Jason.

https://stackoverflow.com/a/5846102 by: Alex Aza.

https://www.postgresql.org/message-id/200305140824.35328.josh%40agliodbs.com

https://www.postgresql.org/message-id/Pine.LNX.4.44.0305081102100.30051-100000%40brave.cs.uml.edu

https://www.postgresql.org/message-id/24226.1052925819%40sss.pgh.pa.us

https://www.postgresql.org/message-id/20030122224044.P7070-100000%40megazone23.bigpanda.com

https://stackoverflow.com/a/1183936 by: hobodave.

https://stackoverflow.com/a/35335272/6401707 by: zen.

https://stackoverflow.com/a/13113623/6401707 by: Craig Ringer.

https://classroom.udacity.com/nanodegrees/nd004-mena/parts/a8609286-c119-4bc5-b9c9-2a3828080114/modules/56f0f4c7-d611-4949-b8d5-e1b9df12d95f/lessons/4cff95e1-3f1c-435a-bc6c-40fcf0d8f884/concepts/35153985360923

https://classroom.udacity.com/nanodegrees/nd004-mena/parts/a8609286-c119-4bc5-b9c9-2a3828080114/modules/56f0f4c7-d611-4949-b8d5-e1b9df12d95f/lessons/d128b204-9a5c-4547-8599-b3983d06911b/concepts/b1bc900a-44ea-43e9-a51b-d3313705277f

https://classroom.udacity.com/nanodegrees/nd004-mena/parts/a8609286-c119-4bc5-b9c9-2a3828080114/modules/56f0f4c7-d611-4949-b8d5-e1b9df12d95f/lessons/d128b204-9a5c-4547-8599-b3983d06911b/concepts/b1bc900a-44ea-43e9-a51b-d3313705277f

http://initd.org/psycopg/docs/usage.html

https://stackoverflow.com/a/21189383 by: Nigel Tufnel.

https://stackoverflow.com/questions/935/string-literals-and-escape-characters-in-postgresql

https://stackoverflow.com/questions/6331504/omitting-the-double-quote-to-do-query-on-postgresql

typeorm/typeorm#435

http://blog.lerner.co.il/quoting-postgresql/

https://classroom.udacity.com/

https://classroom.udacity.com/nanodegrees/nd004-mena/parts/a8609286-c119-4bc5-b9c9-2a3828080114/modules/56f0f4c7-d611-4949-b8d5-e1b9df12d95f/lessons/e168714c-3584-4569-bd1f-3d623c07b0ac/concepts/14c72fe3-e3fe-4959-9c4b-467cf5b7c3a0

https://classroom.udacity.com/nanodegrees/nd004-mena/parts/a8609286-c119-4bc5-b9c9-2a3828080114/modules/56f0f4c7-d611-4949-b8d5-e1b9df12d95f/lessons/d128b204-9a5c-4547-8599-b3983d06911b/concepts/a9cf98c8-0325-4c68-b972-58d5957f1a91