This repo is deployed on Netlify. You can view it here ChatGPT Clone
React
NextJS
TailwindCSS
Firebase
TypeScript
You'll need to create some environment variables in a .env.local file.
FIREBASE_SERVICE_ACCOUNT_KEY (Gotten from your Firebase Account Project)
GOOGLE_ID (Gotten from your Google Authentication Web SDK settings)
GOOGLE_SECRET (Gotten from your Google Authentication Web SDK settings)
NEXTAUTH_SECRET (This really can be any AlphaNumeric you want)
NEXTAUTH_URL (This is the baseURL of your host. e.g localhost:3000 or the url host of your deployed version.)
OPENAI_API_KEY (apiKey from your openai account)
Then you can run these to pull up on localhost:3000
yarn installyarn run devFor the google auth to work, you gotta whitelist your hostname on the google api console.