This is the main root repo that links both frontend and backend of the ChatGPT clone. It mimics OpenAI's ChatGPT flow using Next.js (Frontend) and NestJS (Backend) with OpenAI API integration.
Repo | Description |
---|---|
chatgpt-clone-backend | NestJS backend that handles OpenAI API requests |
chatgpt-clone-frontend | Next.js frontend with modern UI for chatting |
- Chat interface for AI conversations
- User input chat box (no login needed)
- Backend powered by NestJS
- Frontend built with Next.js for server-side rendering
- Sends real-time requests to OpenAI's GPT
- Displays AI responses smoothly
- Serverless-friendly frontend deployment
- API integration for AI responses
- Frontend: chatgpt-clone-frontend
- Backend: chatgpt-clone-backend
- Frontend: Next.js 14, TypeScript, TailwindCSS
- Backend: NestJS, OpenAI SDK
- Clone the repository:
git clone https://github.com/ZiadGamalDev/chatgpt-clone.git
cd chatgpt-clone
- Navigate to the backend directory and install dependencies:
cd chatgpt-clone-backend
npm install
- Navigate to the frontend directory and install dependencies:
cd ../chatgpt-clone-frontend
npm install
- Start the development server:
npm run dev
- Open your browser and navigate to
http://localhost:3000
. - Start chatting with the AI!
This project is licensed under the MIT License.