Skip to content

ChatGPT Clone – A simple web-based chatbot interface built with React, JavaScript, and Tailwind CSS. It features a clean and responsive UI, simulated chatbot responses, dark/light theme support, and Context API for state management.

Notifications You must be signed in to change notification settings

Aamir-786687/ChatGpt_Clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

ChatGpt App

A simple web-based chatbot interface built using HTML, CSS, and JavaScript. This project mimics the front-end layout of a ChatGPT-like interface, allowing for user input and simulated bot responses.

📁 Project Structure

chatgpt-clone/

├── public/ # Static assets

├── src/

│ ├── components/ # Reusable UI components

│ │ ├── ChatMessage.jsx

│ │ ├── ChatWindow.jsx

│ │ ├── Layout.jsx

│ │ ├── MessageInput.jsx

│ │ ├── SettingMenu.jsx

│ │ ├── Sidebar.jsx

│ │ └── TypingIndicator.jsx

│ ├── context/ # Global state management

│ │ ├── ChatContext.jsx

│ │ └── ThemeContext.jsx

│ ├── hooks/ # Custom React hooks

│ │ └── useChatHistory.js

│ ├── pages/ # App pages

│ │ └── Home.jsx

│ ├── services/ # API services

│ │ └── api.js

│ ├── utils/ # Utility functions

│ │ └── openaiApi.js

├── .env # Environment variables

└── README.md # Project documentation

🚀 Features

  • ⚡ Clean, responsive, and modern UI
  • 💬 Real-time user message input
  • 🤖 Simulated chatbot responses
  • 📱 Mobile-friendly layout
  • 🌙 Light/Dark theme support
  • 🧠 Context API-based state management

🛠️ Technologies Used

  • React.js – Component-based frontend library
  • JavaScript – Programming language
  • Tailwind CSS – Utility-first CSS framework

🧪 Getting Started

Prerequisites

  • Make sure you have Node.js and npm installed.

🧪 How to Run

📌 Future Improvements

  1. Integrate with a real chatbot API like OpenAI
  2. Add conversation history storage
  3. Enhance styling and animations

About

ChatGPT Clone – A simple web-based chatbot interface built with React, JavaScript, and Tailwind CSS. It features a clean and responsive UI, simulated chatbot responses, dark/light theme support, and Context API for state management.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published