An AI powered chat application built using Google Gemini API with a modern React (Vite) frontend and Node.js backend. The app allows users to interact with Gemini models in real time with a clean UI and fast responses.
Stack
- React (Vite)
- Express.js
- MongoDB
- Node.js
- Tailwind CSS
-
AI powered chat using Google Gemini
-
Multiple model support
-
Conversation history management
-
Clean and responsive UI
-
Fast frontend built with Vite
-
REST based backend architecture
-
React
-
Vite
-
Tailwind CSS
-
Axios
-
Node.js
-
Express.js
-
Google Gemini API
GeminiGenerator/
│
├── frontend/
│ ├── src/
│ ├── index.html
│ ├── package.json
│ └── vite.config.js
│
├── backend/
│ ├── routes/
│ ├── controllers/
│ ├── services/
│ └── server.js
│
├── .gitignore
└── README.mdgit clone https://github.com/mohdkamran-khan/Gemini-Chat.git
cd Gemini-Chatcd frontend
npm installFrontend will run at:
http://localhost:5173cd backend
npm install
npm startBackend will run at:
http://localhost:3000Create a .env file in the backend folder and add:
MONGO_DB_USERNAME=your_DB_username
MONGO_DB_PASSWORD=your_DB_password
MONGO_DB_DATABASE=your_DB_name
GEMINI_API_KEY=your_google_gemini_api_key
PORT=3000-
User sends a prompt from the frontend
-
Backend forwards the prompt to Gemini API
-
Gemini generates a response
-
Response is sent back and rendered in the UI
-
Conversations are stored for continuity of conversation
- Authentication and user accounts
- Prompt templates
Contributions are welcome. If you want to contribute:
- Fork the repo
- Create a feature branch
git checkout -b feature/your-feature - Commit your changes
git commit -m "feat: add ..." - Push and open a pull request
This project is open-source and available under the [MIT License]
Mohd Kamran Khan | You can reach me at: [mohdkamrankhan.dev@gmail.com]
🌐 Portfolio: mohdkamran-khan.github.io/KAMRAN-portfolio
💡 If you like my work, please ⭐ my repos. Your support inspires me to build more projects! 🚀