A simple web application that generates random quotes based on a selected category.
This project is a web application built using React. It fetches quotes from an API and displays them to the user. The user can click a button to get a new random quote from the selected category. The project utilizes TypeScript for type safety.
- Fetches random quotes from an API.
- Displays the quote and its author.
- Provides a button to get a new random quote.
Setup and Installation
- Clone the repository.
- Install the dependencies by running
- Start the application by running
- Open your browser and navigate to
http://localhost:5173/to view the application.
The project uses an API to fetch the quotes. To configure the API, follow these steps:
- Obtain an API key from API Ninjas.
- Open the
- Set the
API_KEYconstant to your API key.
- Customize the
CATEGORYconstant to the desired category of quotes.