It is the clone of the Google where you can search for anything and it will show the exactly same result we've used the Google Custom API through which we made this project, this is full responsive and you can also install it as the PWA. You can visit the links as well not danger in that, but there is one drawback of this that Google only allow 100 request from single API KEY per day. So this application can search only 100 times a day.
Click Here to see the Live Demo
Create a directory or a folder
mkdir project
Clone the project
git clone https://github.com/j471n/next-google.git
Go to the project directory
cd project
Install dependencies
npm install
# or
yarn
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.
API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js.
The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.
To run this project, you will need to add the following environment variables to your .env file
NEXT_PUBLIC_API_KEY
- Click Here
NEXT_PUBLIC_CONTEXT_KEY
- Click Here
www.google.com
and click CreateGet Code
<script async src="https://cse.google.com/cse.js?cx=b221ffffddfd63f8a4"></script>
we only need the cx
value copy that and paste in you .env
NEXT_PUBLIC_GEOLOCATION_API
- Click Here
.env
If you have any feedback, please reach out to us at jatinsharma089659@gmail.com