Skip to content

C++ CLI quiz game with mariaDB connectivity and data fetching from trivia-API ✨

Notifications You must be signed in to change notification settings

aldrinjenson/c-quiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

C++ CLI quiz game with mariaDB connectivity and data fetching from trivia-API ✨

Topics

Resources

Stars

Watchers

Forks