Project Logs Analysis is a part of the Udacity Full Stack Web Developer Nanodegree.
The project consist of the following files:
- newsdb.py : the python file contains the source code of this project
- output.txt : a sample output this project will generate
- README.md : guideline to run this project
To run this project, you will need to successfully install these following software:
Additionally, you need to have these files as well:
- Download or clone this repository
- Download, unzip this database and put it in the same folder as the one used to install the virtual machine
- Download and install Python3, and VirtualBox
- Open the terminal on your computer and direct it to vagrant sub-directory inside the udacity-fullstack-vm folder
- Installing Vagrant in the previous folder by using the following command
$ vagrant up- It will took a while to install the virtual machine base on the speed of your internet.
- After successfully installing the virtual machine, you can log in by using the command
$ vagrant ssh- Redirect your virtual machine's vagrant folder by using command:
$ cd /vagrant- To load the database, please use the following command:
psql -d news -f newsdata.sql- Finally, to run the project, please use the following command:
python3 newsdb.pyThis README document is based on a template suggested by PhilipCoach in this Udacity forum post