This project is a clone of the popular chat application, ChatGPT. It has been built using Next.js, Firebase Firestore, Tailwind CSS, NextAuth, and Firebase Authentication. The main objective of this project is to provide a real-time chat application that utilizes the power of the GPT (Generative Pre-trained Transformer) model to generate intelligent responses.
To get started with this project, you will need to clone this repository to your local machine. You will also need to set up a Firebase account and create a new project. Once you have created the project, you will need to create a new Firestore database and enable Firebase Authentication.
You will also need to create a .env.local file in the root of the project and add the following environment variables:
NEXTAUTH_URL= FIREBASE_API_KEY= FIREBASE_AUTH_DOMAIN= FIREBASE_PROJECT_ID= FIREBASE_STORAGE_BUCKET= FIREBASE_MESSAGING_SENDER_ID= FIREBASE_APP_ID=
After setting up the project, you can run the development server using the following command:
npm run dev
This will start the development server and you can access the application by visiting http://localhost:3000 in your web browser.
The main features of this application include:
User authentication using Firebase Authentication Real-time chat using Firebase Firestore GPT-based intelligent responses Responsive design using Tailwind CSS
If you would like to contribute to this project, please feel free to submit a pull request. Before submitting a pull request, please make sure that your code is properly formatted and that you have added any necessary documentation.