Skip to content

A React app that fetches and displays random jokes from different categories using a Jokes API.

License

Notifications You must be signed in to change notification settings

MuchokiDavid/Joker

Repository files navigation

Joker App

A React app that fetches and displays random jokes from different categories using a Jokes API.

Table of Contents

Features

  • Fetch random jokes from different categories.
  • Select a category from a dropdown menu.
  • Display the selected category's random joke.
  • Simple and responsive UI.

Setup

Prerequisites

  • Node.js and npm installed on your machine.

Installation

  1. Clone the repository:

    git clone https://github.com/MuchokiDavid/Joker.git
    
  2. Navigate to the project directory:

    cd joker
  3. Install dependencies:

    npm install

Usage

  1. Start the development server:

    npm start
  2. Open your browser and navigate to http://localhost:3000.

    You should see an interface with a "Get Joke" button, a select input for selecting the category of jokes and a paragraph of joke randomly generated.

  3. Explore random jokes by selecting different categories from the dropdown.

API Used

This app uses the Jokes API to fetch random jokes. You can find more information about the API here.

Contributing

  1. Fork the repository.
  2. Create a new branch for your feature: git checkout -b feature/new-feature.
  3. Make your changes and commit: git commit -m 'Add new feature'.
  4. Push to the branch: git push origin feature/new-feature.
  5. Submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Muchoki David

Releases

No releases published

Packages

No packages published