A reporting tool that prints out reports (in plain text) based on the data in the database.
- What are the most popular three articles of all time?
- Who are the most popular article authors of all time?
- On which days did more than 1% of requests lead to errors?
- Install Vagrant
- Install VirtualBox
- Download the vagrant setup files from Udacity's Github
- Download the database newsdata.sql (https://d17h27t6h515a5.cloudfront.net/topher/2016/August/57b5f748_newsdata/newsdata.zip)
- Put the newsdata.sql file into the vagrant directory
- Download this project and unzip all file to the vagrant directory
- Open Terminal.
- cd into the vagrant directory
- Run
vagrant up
to build the VM for the first time. - Once it is built, run
vagrant ssh
to connect. - cd into the correct project directory:
cd /vagrant/log_analysis
- Load the data using the following command:
psql -d news -f newsdata.sql
- You should already have vagrant up and be connected to it.
- If you aren't already, cd into the correct project directory:
cd /vagrant/log_project
- Run
python log.py