This repository contains the code for building a ChatGPT clone using React with Next.js, Firebase for real-time database and authentication, Tailwind CSS for styling, and TypeScript for type safety.
Follow the steps below to get the project up and running on your local machine.
Make sure you have the following tools installed:
- Node.js (v14 or higher)
- npm (Node Package Manager)
- Firebase account and project (for real-time database and authentication)
-
Clone the repository:
git clone git@github.com:ericz02/chatgpt-clone.git
-
Navigate to project directory
cd chatgpt-clone
-
Create a Firebase project and set up the necessary configurations (API keys, authentication, etc.).
-
Rename the .env.example file to .env.local and fill in your Firebase configuration details.
Start the development server:
npm run dev