A React-based clone of Google's Gemini AI interface, built with modern web technologies and styled using Tailwind CSS.
- Real-time AI responses using the Gemini API
- Clean and responsive user interface
- Chat history management
- Code highlighting for programming responses
- Markdown support for formatted text
- Mobile-friendly design
- Frontend Framework: React.js
- Styling: Tailwind CSS
- API Integration: Google Gemini API
- Markdown Support: React-Markdown
- Build Tool: Vite
- Node.js (v16 or higher)
- npm or yarn
- Google Cloud Platform account
- Gemini API key
- Clone the repository:
git clone https://github.com/Aditya1or0/gemini-clone.git
cd gemini-clone
- Install dependencies:
npm install
# or
yarn install
- Create a
.env
file in the root directory:
VITE_GEMINI_API_KEY=your_api_key_here
- Start the development server:
npm run dev
# or
yarn dev
The application will be available at http://localhost:5173
Create a .env
file with the following variables:
VITE_GEMINI_API_KEY=your_api_key_here
- Visit the Google Cloud Console
- Create a new project or select an existing one
- Enable the Gemini API
- Create API credentials
- Copy the API key to your
.env
file
└── Aditya1or0-gemini-clone/
├── README.md
├── eslint.config.js
├── index.html
├── package.json
├── vite.config.js
├── public/
└── src/
├── App.jsx
├── index.css
├── main.jsx
├── assets/
│ └── assets.js
├── components/
│ ├── Main/
│ │ ├── Main.css
│ │ └── Main.jsx
│ └── Sidebar/
│ ├── Sidebar.css
│ └── Sidebar.jsx
├── config/
│ └── gemini.js
└── context/
└── Context.jsx
src/components/
: Contains the main UI componentsMain/
: Houses the main chat interfaceSidebar/
: Contains the sidebar navigation and chat history
src/config/
: Contains configuration files for the Gemini APIsrc/context/
: Contains React context for state managementsrc/assets/
: Stores static assets and asset utilities
This project is licensed under the MIT License - see the LICENSE file for details.
- Google Gemini API team for providing the API
- React.js community for excellent documentation
- Tailwind CSS team for the amazing styling framework
Aditya - @Aditya1or0
Project Link: https://github.com/Aditya1or0/gemini-clone