for running the program, you need to install this packages :
-
$ 'sudo apt-get install libpq-dev'
-
$ 'sudo apt install python3-dev libpq-dev'
-
$ 'pip3 install psycopg2'
-
$ 'sudo nano /etc/postgresql/11/main/pg_hba.conf'
-
$ 'pip3 install matplotlib'
find the following part of file:
# Database administrative login by Unix domain socket local all postgres peer
change 'peer' to 'trust' and save the file (press : ctrl+x then press y)
reload the server to apply the changes : $ 'sudo service postgresql restart'
to use the project; follow the below steps:
- clone the project
- open a terminal and cd into 'corona-final-project' directory
- type following command : 'chmod +x getter.sh'
- and finally type this command to start the project : './getter.sh'
- open new terminal and run the python program to get the analyzing reports
you can see logs of each time 'reader.c' executed (every one minute), in a file created beside the project: 'report.log'