- 💬 Real-time chat interface
- 🧠 Powered by OpenAI's GPT-3.5 model
- 🎨 Clean and responsive design using Bootstrap
- 🔄 Easy to extend and customize
- 🔥 Firebase hosting and Cloud Functions
Before you begin, ensure you have met the following requirements:
- Node.js (v14 or later)
- npm (v6 or later)
- Firebase CLI
- An OpenAI API key
- Clone the repository:
git clone https://github.com/naimkatiman/ChatGPT-Clone.git cd ChatGPT-Clone
- Install dependencies:
npm install
- Set up environment:
Then edit
cp .env.example .env
.env
and add your OpenAI API key - Install Firebase CLI (if not already installed):
npm install -g firebase-tools
- Log in to Firebase:
firebase login
- Initialize Firebase in your project:
Select Hosting and Functions when prompted.
firebase init
- Build the project:
npm run build
- Start the server:
npm start
To run the project locally:
- Start the development server:
npm run dev
- Open your browser and navigate to
http://localhost:3000
To deploy the project to Firebase:
- Build the project:
npm run build
- Deploy to Firebase:
firebase deploy
After deployment, open your browser and navigate to the Firebase-hosted URL (you can find this in the Firebase Console or in the output after deployment).
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Naim Katiman - @naimkatiman
Project Link: https://github.com/naimkatiman/ChatGPT-Clone
- OpenAI for providing the GPT-3.5 model
- Firebase for hosting and serverless functions
- Bootstrap for responsive design
Made with ❤️ and ☕
```