Skip to content

A dynamic flashcard quiz generating questions & answers with the help of the Open Trivia API.

Notifications You must be signed in to change notification settings

michael-schlueter/flashcard-quiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flashcard Quiz

This is a small React application to generate Flashcard quizzes.

General Information

  • I undertook this project to solidify my understanding of connecting a React app to an API to get and render its data dynamically
  • Furthermore I wanted to gain further knowledge about animating with CSS

Technologies Used

Features

  • Generating Flashcard quizzes using the Open Trivia API
  • Displaying Flashcard quizzes for different categories (e.g., movies, video games, sports, geography)
  • Flipping animation to display questions / answers
  • Customizing the amount of questions in the quiz and display them dynamically using CSS Grid

Screenshots

Example screenshot

Demo

Live demo here.

Setup

The dependencies which are necessary to run this app can be found in the package.json file.

  1. Clone the repo
  2. Navigate to the project folder in the terminal and install the necessary NPM dependencies
npm install
  1. Run the app typing
npm start

in your terminal. Visit localhost:3000 in your browser.

Learnings

  • Connecting a React App to an external API (asynchronous requests, rendering the data)
  • Using sort() array method to randomly display the possible answers
  • Using CSS animations to flip the cards (transform / transform-style)
  • Working with the useRef() hook to target specific elements

Project Status

The project is finished.

Acknowledgements

About

A dynamic flashcard quiz generating questions & answers with the help of the Open Trivia API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published