In this project, you'll work with data that could have come from a real-world web application, with fields representing information that a web server would record, such as HTTP status codes and URL paths. The web server and the reporting tool both connect to the same database, allowing information to flow from the web server into the report.
- Python 2.7.10
- Vagrant
- VirtualBox
- Fullstack_nanodegree-vm
- newsdata.sql file
- create local database:"news"
-
Launch Virtual Machine:
$ vagrant up
-
Log into VM:
$ vagrant ssh
-
Connect to vagrant directory:
cd /vagrant
-
Create Database "news":
$ psql $ CREATE DATABASE news; $\q
-
Load the data in local database:
$ psql -d news -f newsdata.sql
-
Create views:
$ psql -d news -f news_views.sql
-
Run script:
python Analysis_script.py