Skip to content

rijughosh01/joke-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Joke Generator

Welcome to the Joke Generator! This React application fetches random jokes from an API, allows users to save their favorite jokes, share jokes on social media, switch between dark and light themes, and select different joke categories.

Features

Random Joke Fetching: Fetch random jokes from an external API. Favorite Jokes: Save and delete your favorite jokes. Dark Mode: Toggle between dark and light themes. Joke Categories: Select different categories of jokes (e.g., programming, general). Social Media Sharing: Share jokes on Facebook and Twitter. Accessibility: Improved accessibility with ARIA labels, keyboard navigation, and color contrast adjustments.

Technologies Used

  • React
  • Redux-React
  • Redux
  • React-Share
  • CSS

Getting Started

Make sure you have the following installed on your system:

  • Node.js
  • npm (Node Package Manager)

Installation

  1. Clone the Repository:

    https://github.com/rijughosh01/joke-generator

    cd joke-generator

  2. Install Dependencies: npm install

Running the Application

To start the development server, run:

npm start

Usage

Fetch Jokes: Click the "Fetch a new joke" button to get a random joke.

Save Favorite Jokes: Click the "Save as Favorite" button to save the current joke to your favorites.

Delete Favorite Jokes: Click the "Delete" button next to a favorite joke to remove it from the list.

Toggle Dark Mode: Click the "Switch to Light/Dark Mode" button to toggle between themes.

Select Categories: Use the dropdown to select different categories of jokes.

Share Jokes: Use the social media buttons to share jokes on Facebook and Twitter.

License

This project is licensed under the MIT License.

Contact

For any inquiries or feedback, please contact [email protected].

Enjoy generating jokes! 😊