This project is a demo of how to build a chat interface using ChatGPT, a natural language processing AI model developed by OpenAI, with Next.js and Firebase.
- Login page with Firebase Authentication.
- Home page with a chat interface using ChatGPT.
- Real-time responses from ChatGPT.
- Styling with Tailwind CSS.
- Storage of chat messages in Firestore.
- Next.js
- TypeScript
- Firebase Authentication
- Firebase Firestore
- OpenAI API
- Tailwind CSS
To run this project locally, you'll need to:
- Set up a Firebase project and obtain API keys for Firebase Authentication and Firestore.
- Obtain an API key for the OpenAI API.
- Clone this repository.
- Install the dependencies by running npm install in the project directory.
- Create a .env.local file with your Firebase and OpenAI API keys. See .env.example for an example.
- Start the development server by running npm run dev in the project directory.
If you'd like to contribute to this project, feel free to open a pull request or submit an issue. All contributions are welcome!
This project is licensed under the GNU General Public License v3.0.
I hope this helps! Let me know if you have any other questions.