This is an application built on React and TypeScript that tests your knowledge of country capitals. It presents a series of questions about country names and reveals the corresponding capitals for you to learn.
- Randomly selects country-capital tuples from a dataset.
- Displays a question with a country name.
- Reveals the answer by displaying the corresponding capital.
- Tracks the user's progress by removing answered tuples from the dataset.
- Allows users to reset the quiz or continue from previously answered questions.
- Persists user progress in the browser's local storage.
Follow the instructions below to set up and run the project on your local machine.
- Node.js (version 16.19.1)
- Yarn (version 1.22.19)
-
Clone the repository:
git clone https://github.com/syed-45/flashcards-trainer.git
-
Navigate to the project directory:
cd flashcards-trainer
-
Install the dependencies:
yarn
-
Start the development server:
yarn start
-
Open your web browser and visit
http://localhost:3000
to access the application, or visit192.168.0.11:3000
to view on your mobile device which is connect to your local network.
- The country-capital dataset used in this project is sourced from restcountries API.