Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.35 KB

README.md

File metadata and controls

51 lines (35 loc) · 1.35 KB

C-Quiz

Terminal based quiz application with category based quizzing and SQL Database connectivity!

Features

  • 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

Screenshots

screenshot1
screenshot2 screenshot3

Libraries used

Usage

  • 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

Note: these commands are tested just in Arch Linux for now. There may be slight modifications needed for the commands specific to your OS.