Skip to content

Latest commit

 

History

History
68 lines (38 loc) · 1.66 KB

README.md

File metadata and controls

68 lines (38 loc) · 1.66 KB

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