Giter VIP home page Giter VIP logo

shirsobhattacharyya / google-search-clone Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 23 KB

This is my attempt to clone Google Search Engine, yes you read it right! This project attempts to demonstrate the functionalities of a search engine website like Google. The search results are displayed according to what the user searches in the search box. The search results are fetched from live google API.

Home Page: https://google-clone-shirso.netlify.app

HTML 4.18% JavaScript 86.92% CSS 8.90%
api custom-hooks custom-hooks-in-react google google-search google-search-api javascript live-search react real

google-search-clone's Introduction

Google-Search-Clone

Summary

This project attempts to demonstrate the functionalities of a search engine website like Google. The search results are displayed according to what the user searches in the search box. The search results are fetched from live google API.

Screenshots

Google Search Google Search Results

Features

  • User search:

    The user is able to google literally anything he wants. The input term is being taken from the search box via useState hook and sent to the context api where in the reducer function the initialState is being updated and sent to the api after getting the term via the use of useContext as a dynamic query parameter(q) through which relevant information is being fetched.

  • Live Search Results:

    Through a customized hook, I managed to develop a way to take any user input term and manufacture real time google search results. Even though the free version of the api is restricted to only 100 searches. To avoid hurdles in development, I also created a mock api which mimics the google response for development and testing purposes to prevent exhaustion of the live API that easily.

  • Fetching from API:

    Through the usage of either fetch or axios, we can easily manage to fetch data from any api and append the data according to the way we want. I did insert a fetch function inside a useEffect hook to automatically generate live results from the api. In the api link, three parameters were critical, the api key(key), the programmable search engine id(cx) and the query parameter(q). Please do not use my api key as it exhausts only after a 100 searches and the results won't be displayed. For further details on how to create your own API key, please visit key.js and read through the annotations for better clarity.

  • Cross platform responsiveness:

    The responsiveness of a website in various platforms ensure a great user experience throughout and makes any project a lot more impactful. I have ensured that this is taken care of as well in this project.

๐Ÿš€ About Me

Hi, this is Shirso Bhattacharyya. I'm a full-stack MERN developer based in India. I've always enjoyed working on different projects to enhance my experience in developing various websites with varying features and functionalities. Please feel free to drop off a text for collaborations or even if you wanna just say 'hi'

Feedback

If you have any feedback, please feel free to reach out to me at [email protected].

google-search-clone's People

Contributors

shirsobhattacharyya avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.