A ChatGPT-like conversational AI web app built using React (Vite) for the frontend and Node.js + Express for the backend.
The app allows users to chat with an AI model in real time, featuring a ChatGPT-style UI, typing animation, and smooth auto-scrolling.
- ⚡ Real-time AI chat responses
- ⌨️ ChatGPT-style typing animation
- 🔄 Auto-scroll to latest message
- 🌙 Dark-mode inspired UI (ChatGPT-like)
- 🧠 Clean separation of frontend & backend
- 🔐 Environment variable support using Vite
- 📦 Simple and lightweight setup
- React (with Hooks)
- Vite
- Axios
- CSS (Custom Styling)
- Node.js
- Express
- Google Gemini API (or compatible LLM API)
- CORS
- dotenv
Mini ChatGPT/
│
├── client/
│ ├── src/
│ │ ├── ChatBox.jsx
│ │ ├── App.jsx
│ │ ├── chatBox.css
│ │ └── App.css
│ ├── .env
│ ├── package.json
│ └── vite.config.js
│
├── server/
│ ├── server.js
│ ├── .env
│ └── package.json
│
└── README.md
git clone https://github.com/PiyushB752/Mini_ChatGPT.git
cd Mini_ChatGPT
cd server
npm install
npm run dev
Backend will start at - http://localhost:5000
cd client
npm install
npm run dev
Frontend will start at - http://localhost:5173
- User types a message in the chat input
- Frontend sends the prompt to the backend API
- Backend forwards the request to the AI model
- AI response is returned and displayed in chat
- UI auto-scrolls and shows a typing indicator
- Simple chatting with an AI
- Asking general questions
- Getting quick explanations or answers
- Practicing conversations
- Learning how AI chat applications work
- Type a question like "What is React?"
- Ask casual questions like "Tell me a joke"
- Have simple conversations with the AI
- Observe how AI responses appear with typing animation