The idea of this project is developing a simple quiz using Golang and a Cobra CLI that talks with the API implemented by Francisco Augusto Cesar de Camargo Bellaz Guiraldelli.
The main demanded user stories and use cases for this project is described below:
- User should be presented questions with a number of answers;
- User should be able to select just one answer per question;
- User should be able to answer all the questions and then post his/her answers and get back how many correct answers there had and be displayed to the user;
- User should see how good he/she rated compared to others that had taken the quiz, e.g. "You scored higher than 60% of all quizzers".
Additionally to make more easier the user experience and the development for this project was added also the user stories / use cases below: - User should be able to register your user using name and e-mail;
To run the project you have to follow the steps below:
-
Run the command to build compile the executable file in the main directory:
go build .
-
Run the command to start server:
<executable_filename> startServer
-
Run the command to start quiz:
<executable_filename> startQuiz
ENJOY!