This is the frontend of the ChatGPT Clone built using Next.js 14 (App Router) and Tailwind CSS. It connects to a NestJS backend API to simulate real-time conversations with AI.
- Clean chat interface with light UI
- Backend integration for sending/receiving messages
- Auto-scroll chat history
- Responsive design with Tailwind CSS
https://chatgpt-clone-frontend-alpha.vercel.app/
Check the backend here: chatgpt-clone-backend
- Next.js 14 (App Router)
- TypeScript
- Tailwind CSS
- OpenAI API (via backend)
- Clone the repo:
git clone https://github.com/ZiadGamalDev/chatgpt-clone-frontend.git
cd chatgpt-clone-frontend- Install dependencies:
npm install- Set environment variable:
Create a .env.local file and add:
NEXT_PUBLIC_API_URL=https://chatgpt-clone-backend.dinamo-app.com- Run the app locally:
npm run devVisit: http://localhost:3000
src/
├── app/
│ ├── layout.tsx
│ ├── page.tsx
├── styles/
│ └── globals.css
This project was built as part of the AI for Technical Track at ITI.
MIT