A modern, full-stack web application that leverages Google's Gemini AI to provide intelligent answers to your questions.
- ✨ Clean, modern UI with Tailwind CSS
- 🚀 Fast, real-time AI responses
- 🔒 Secure API key handling
- 📱 Responsive design
- 💬 Interactive chat interface
- Backend: Node.js, Express.js
- Frontend: HTML, CSS (Tailwind), JavaScript
- AI: Google Gemini API (gemini-2.0-flash)
- Deployment: Vercel (backend)
-
Clone the repository
git clone https://github.com/saurya96/Geminii.git cd Geminii -
Install dependencies
npm install
-
Configure environment variables
cp .env.example .env
Then edit
.envand add your Gemini API key:GEMINI_API_KEY=your_api_key_here -
Run the development server
npm start
-
Open your browser Navigate to
http://localhost:3000
GEMINI_API_KEY- Your Google Gemini API key (required)GEMINI_MODEL- Model to use (default: gemini-2.0-flash)GEMINI_PROVIDER- Provider name (default: google)MOCK_RESPONSE- Use mock responses for testing (default: false)PORT- Server port (default: 3000)
.
├── public/ # Frontend files
│ ├── index.html # Landing page
│ ├── app.html # Chat interface
│ ├── script.js # Frontend logic
│ └── style.css # Custom styles
├── server.js # Express server
├── package.json # Dependencies
├── .env # Environment variables (not in git)
└── README.md # This file
GET /- Landing pageGET /app- Chat interfacePOST /ask- Submit a question to GeminiGET /health- Health checkGET /diagnostics/gemini- API diagnostics
The backend is deployed on Vercel at: https://geminii-8e7n.vercel.app
MIT