Skip to content

alexpaden/google-next

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 

Repository files navigation

Google Clone with Custom Search and OAuth 2

With Next.js and tailwindcss

Getting Started

First, run the development server:

Clone the repository from https://github.com/alexpaden/google-next.git

Run local dev environment

cd Google
cp .env.example .env

+ add google oauth URIs localhost:3000
+ add google oauth redirect URIs localhost:3000/api/auth/callback/google

yarn install
yarn dev

Open http://localhost:3000 with your browser to see the result.

Run from Dockerfile

cd Google
cp .env.example .env (or via cloud host)

+ add google oauth URIs localhost:3000
+ add google oauth redirect URIs localhost:3000/api/auth/callback/google

docker build -t google-next .
docker run -p 3000:3000 google-next

Open http://localhost:3000 with your browser to see the result.

clone repository
deploy to vercel
add api keys
add oauth "custom".vercel.app URIs
add oauth "custom".vercel.app redirect URIs 
"custom".vercel.app/api/auth/callback/google

Open the vercel.app url with your browser to see the result. https://google-next-alexpaden.vercel.app/.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!