this project is about bulding a reporting tool that well execute queries on newspaper site database.
- first thing yuo need to instal vagrant virtual box from Here.
- dawnload this file and make sure to save it on the desktop Here.
- dawnload the database Here.
- make sure to save the project file with database inside the vagrant folder \fullstack-nanodegree-vm-master\vagrant.
- now you can run the program from the command prompt but its better to use git.bash you can find it Here.
- Navigate to folder using the bash interface
cd your-directory\fullstack-nanodegree-vm-master\vagrant
. - creates and configures the guest machines(vagrant) tybe
vagrant up
it may take sometime. - Now you will open a connection into a the running Vagrant
vagrant ssh
. - dawnload the database to vagrant use
psql -d news -f newsdata.sql
and run it withpsql -d news
. - Navigate into the vagrant folder using
cd /vagrant
and then to project foldercd log_project
. - now you can run the program using
python log-analysis.py
.