DEV Community

Cover image for Fully functional google search with Next.js
Jatin Sharma
Jatin Sharma

Posted on โ€ข Edited on

19 5

Fully functional google search with Next.js

In this article, I am going to tell you about how I made Google fully functional Clone with next.js and tailwind. So Let's dive in.

In this we are not redirecting user to the google page, instead we are using google custom search API to perform all operation in the same domain User can only fetch this API about 100 times so be careful with that you cannot search more that 100 times

Note - If you are developing this by yourself then must use mock data so don't exhaust your API request limit

Features

  • Realtime and Accurate Google Search
  • Full Screen mode
  • Installable PWA
  • Search Any Query
  • Full Responsiveness
  • Show your location based on you IP
  • Dark Theme support based on user's device setting

Technologies I've used -

Screenshots

Desktop - Home Page

desktop

Desktop - Results Page

desktop

Mobile - Home Page

Mobile - Results Page

This is obvious that I cannot share all the code there for that you have to visit the repository, which link is given below, this is not a complex application it is very easy to set up you just need to have a basic understanding of React and TailwindCSS.
First, you need to create the next.js app and install all the dependencies which are required you can look at my package.json, and then you just code.

For detailed info about this project Visit Here

Important Links
Get the Code
LIVE Demo

Conclusion

This project taught me many things such as next.js sever side, router and many more use full things you can also build that from scratch. I

If you like it then you can now extend your support by buying me a Coffee.๐Ÿ˜Š๐Ÿ‘‡

Buy Me A Coffee

You might be interested in -

Top comments (2)

Collapse
 
ats1999 profile image
Rahul kumar โ€ข

Next Google

image

Old Google

google

Collapse
 
j471n profile image
Jatin Sharma โ€ข

It still in development and yes only search works for now but i am planning to expand that with so many features such as login, search images and etc. Thanks for your feedback :)

typescript

11 Tips That Make You a Better Typescript Programmer

1 Think in {Set}

Type is an everyday concept to programmers, but itโ€™s surprisingly difficult to define it succinctly. I find it helpful to use Set as a conceptual model instead.

#2 Understand declared type and narrowed type

One extremely powerful typescript feature is automatic type narrowing based on control flow. This means a variable has two types associated with it at any specific point of code location: a declaration type and a narrowed type.

#3 Use discriminated union instead of optional fields

...

Read the whole post now!

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay