Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryana265/random-quotes-generator


https://github.com/ryana265/random-quotes-generator

axios-react javascript react vite

Last synced: about 17 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Quotes App

A **Random Quote Generator** built using **React.js** and **Axios**,which fetches and displays quotes from a public API. This app allows users to view a random quote and generate a new one with the click of a button.

## Features

- Fetches random quotes from an API.
- Displays a quote and its author.
- A button to generate new random quotes.
- Minimalistic and user-friendly design.
- Responsive layout for mobile and desktop users.

## Demo

You can check the Quotes app [here](https://random-quotes-generator-mocha.vercel.app/)

## Screenshots

![Screenshot 2024-09-27 205414](https://github.com/user-attachments/assets/330f5a41-043d-4837-ba8c-8efcaecd0cd2)

## Technologies Used

- **React.js** - For building the UI components.
- **Axios** - For making HTTP requests to the quotes API.
- **HTML5** and **CSS3** - For structure and styling.
- **JavaScript (ES6+)** - For handling logic and interactivity.

## Installation

Follow these steps to run the app locally:

1. **Clone the repository**:
```bash
git clone https://github.com/your-username/quotes-app.git
2. **Navigate to the project folder**:
```bash
cd quotes-app
3. **Install dependencies:**:
```bash
npm install
4. **Start the development server:**:
```bash
npm start
5. **Open your browser and visit http://localhost:3000 to view the app.**:


## Usage

Random Quote Generation: When the app loads, it automatically displays a random quote. To generate a new quote, click the "Generate New Quote" button.

## React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh