I am working on a new app. I have almost all the DB Design done. I need some help with few points. Docker - MariaDB - NodeJS - Framework 7
In thw quiz will be questions of 2 options and 4 options.
I thought you were referring to the database design. But it seems you actually want to know how to implement all that from a frontend and backend perspective.
Your questions are too broad to be able to give a quick straight answer. Where are you at right now? Do you have anything implemented?
That should be rephrased as the "amount of right and wrong answers" as your question can be interpreted as showing which are the correct and wrong answers.
Coming back to this question. Do you want to store that info as history log in the database or do you just want to show a quick summary and not store results in database?
If you want to have records per user of the quizzes you would at least need to store in a new table the user id, the quiz id and when they completed the quiz.
You could use that same table to store the wrong answers(if it’s not wrong it’s correct).
So you would have a table called completed_quizes or similar with the following fields: