Skip to content

AP-TGR/frontend-live-coding-exercise-react-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tendable Coding Assessment

Usage

yarn
yarn dev

Notes

The application can be run using the commands provided above. I have created a separate QuizApp component using TypeScript and added the necessary development dependencies.

Improvement Suggestions

  • The app currently uses an outdated version of Node.js. It is recommended to update to Node.js version 18 or higher.
  • To address security issues, I have temporarily bypassed some updates using NODE_OPTIONS=--openssl-legacy-provider.
  • For better dependency management, consider adding a engines property in package.json to clearly specify the required Node.js version and other dependencies.

Goal

Complete this React program to ask the end user a series of Yes/No questions, calculate and report the score back to them after each run. Additionally, calculate and report overall score for all runs.

Requirements

Given I am a user accessing the webapp
When I run the application
Then I should be presented with a series of questions that can only be answered as a Yes or a No
Score should be calculated using the following equation : 100 * number of yes answers/number of questions
And the calculated score should be printed

When I re-run the application
then the program should also print an average rating for all runs

Notes:
Please feel free to use a persistent storage you seem fit for example Node-Persist
The questions can be found in src/questions.ts.
Ensure we can run your exercise.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published