This project is a Google Search clone built with React, utilizing the Google Search API from RapidAPI.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js (v14.0.0 or later)
- npm (v6.0.0 or later)
-
Clone the repository:
git clone https://github.com/your-username/google-search-clone.git cd google-search-clone
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory and add your RapidAPI key:REACT_APP_API_KEY=your_rapidapi_key_here
You can obtain a RapidAPI key by signing up at RapidAPI and subscribing to the Google Search API.
To start the development server:
npm start
The application will be available at http://localhost:3000
.
src/components/
: Contains all React componentssrc/contexts/
: Contains the StateContext for global state managementsrc/index.js
: Entry point of the applicationsrc/App.js
: Main application component
- Web search
- Image search
- News search
- Video search
If you encounter issues with API rate limiting, try the following:
- Increase the delay between requests in
src/contexts/StateContextProvider.js
- Check your API usage on RapidAPI dashboard
- Consider upgrading your API plan for higher rate limits
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Google Search API provided by RapidAPI
- React and its community for excellent documentation and support