HackYourFuture-CPH / Guide-IT

Guide IT, a tool to help newcomers decide their IT path
MIT License
3 stars 1 forks source link

Full Stack: Quiz Flow #137

Closed dpfernandes closed 3 years ago

dpfernandes commented 3 years ago

User story

Who: As a developer What: I want to save every answer of the quiz whenever the user press NEXT on the Quiz. Why: so that we can that we in the end of the quiz we can calculate the career result and path.

Implementation details for the page

If the user is not authenticated, we need to create a new entry on the User's table but with firebase_token value = "anonymous ", and retrieve that value so that we can use it to save it in the DB.

Whenever a question is answered we make a call using the endpoint Quiz Result and we add a new Quiz result answer (answer id) to a specific question(question id), and we also need to write which user is answering (user_id) - check endpoint developed here https://github.com/HackYourFuture-CPH/Guide-IT/issues/34

Remember to split the story into smaller PR's! Maybe you can do a PR with just the words, filter fx. You can also choose to do it in separate commits. just be very aware of the PR's not becoming too big!

Check the README file here https://github.com/HackYourFuture-CPH/guide-it#-working-with-api-documentation---swagger and this article should also help you with that https://blog.logrocket.com/documenting-your-express-api-with-swagger/