A modern web application built with Next.js that integrates Google's Gemini AI API for intelligent interactions and responses.
- 🚀 Built with Next.js for optimal performance
- 💎 TypeScript for type safety
- 🎨 Styled with Tailwind CSS and shadcn/ui
- 🤖 Google Gemini AI integration
- 🔒 Middleware for request handling
- 📱 Responsive design
- 🎯 Custom hooks for state management
- Node.js (18.x or later)
- PNPM package manager
- Google Gemini API key
- Clone the repository:
git clone https://github.com/c-jeremy/gemini-web-chat.git
cd gemini-web-chat- Install dependencies:
pnpm install- Create a
.env.localfile in the root directory with your Gemini API key:
GEMINI_API_KEY=your_api_key_here- Run the development server:
pnpm devOpen http://localhost:3000/secret-auth with your browser to see the result.
├── app/ # Next.js app directory
├── components/ # React components
├── hooks/ # Custom React hooks
├── lib/ # Utility functions and configurations
├── public/ # Static assets
├── styles/ # Global styles
└── types/ # TypeScript type definitions
This application can be deployed on Vercel with minimal configuration:
- Star & Fork this repo
- Import your repository at Vercel
- Add your environment variables in the Vercel project settings
- Deploy!
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT license.