Usage¶
step-by-step guide¶
If you have performed the previous steps without problems you are ready to use my project. Then clone the repository to your computer using the following command:
For personal security reasons, it is good practice to save your access credentials in the system's environment variables. Then using the touch command we create a setenv.sh file which must contain the following code:
in particular the PASSWORD should be the login password of your computer, while to find out which connection PORT is you can use the following command:
Finally, the USERNAME represent the owner of the database, which is usually postgres if you have not changed it during the installation of PostgreSQL.
Warning
To use the previous command you need to log back into psql and then use the sudo -i -u postgres command and then the psql command.
once the setenv.sh file is completed you can use the following commands:
to apply those environment variables to the shell currently in use.
Once you have set the environment variables you will need to compile the program. Then you can use the following command:
To test the program we can use the following command:
so as to obtain:
To remove the program from your computer you can use the following command:
Add tasks¶
Input:
Output:
Note
Double quotes " " are optional for single words like coffee, chocolate, tea, homework, and so on.
Print tasks¶
Input:
Output:
Delete tasks¶
Input:
Output:
Edit tasks¶
Input:
Output: