Build an internal reporting tool that will use information from a news database to discover and answer the following three questions:
- 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?
- Relational Datasbases
- SQL
- Python
- Install Vagrant
- Install VirtualBox
- Download or clone from Github the necessary setup files from fullstack-nandegree-vm repository
- Download the database setup file - Download data here
- Unzip the file after downloading it.
- Find the file, newsdata.sql, and put it into the vagrant directory which is shared with your virtual machine
- Download this reporting tool - Logs Analysis Tool
- Copy the files into the vagrant directory
- Change your current working directory to vagrant directory.
- Open Terminal and run
vagrant up
to build the VM. - Run
vagrant ssh
to log in and connect to the VM. - Once you're in vagrant, run
cd /vagrant
to change the directory to the vagrant directory. - Run command
psql -d news -f newsdata.sql
to load the database - Use command
python logs_analysis.py
to run the programm