A React application that generates random memes using the Giphy API.
- Fetches random memes from Giphy
- Displays meme images with captions
- Allows users to generate new random memes
Before you begin, ensure you have met the following requirements:
- You have installed Node.js and npm
- You have a Giphy API key (see instructions below)
To install the Random Meme Generator, follow these steps:
- Clone the repository:
git clone https://github.com/ayush22667/randomMemeGenerator.git - Navigate to the project directory:
cd random-meme-generator - Install the dependencies:
npm install
To use Random Meme Generator, follow these steps:
- Create a
.envfile in the root directory and add your Giphy API key:REACT_APP_GIPHY_API_KEY=your_api_key_here - Start the development server:
npm start - Open your browser and visit
http://localhost:3000
To use this application, you'll need to obtain an API key from Giphy. Here's how:
- Go to the Giphy Developers website: https://developers.giphy.com/
- Click on "Get Started" or "Create an App"
- Sign up for a Giphy account or log in if you already have one
- Once logged in, click on "Create an App"
- Select "API" as the type of app you want to create
- Give your app a name and description
- Agree to the terms of service and click "Create App"
- You'll be given an API Key. This is what you'll use in the
.envfile
Remember to keep your API key secret and never commit it directly to your repository.
If you want to contact me, you can reach me at ayushanandbtcs@gmail.com.