aldrinjenson / c-quiz

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 ✨


Languages

Language:C++ 88.2%Language:Makefile 10.3%Language:C 1.5%