Terminal based quiz application with category based quizzing and SQL Database connectivity!
- fetch categories by making API request from https://the-trivia-api.com/
- make request using selected category and get list of questions in JSON format
- Database connectivity to save and view high scores using MariaDb
- modularised codebase using header and implementation files
- Install and Start mariaDb
sudo systemctl start mariadb
- clone this repository
- install the libraries based on your package manager
- connect using the db username and password. Ref
- navigate to project root
- compile and link cpp files using g++
g++ main.cpp implemetations/*.cpp -lPocoNetSSL -lPocoFoundation -lPocoNet -lPocoUtil -lmariadbcpp
-
Ensure that you have internet connectivity
-
start program
./a.out