Skip to content

sudipb7/ai

Repository files navigation

Chat with AI like never before

AI is a free tool to interact with Google's Gemini Pro model with an amazing user experience

Landing page

Tech Stack

  • Next.JS - Application foundation for a responsive and efficient user interface.
  • Supabase - Secure authentication
  • TypeScript - Improved code quality and maintainability through static typing.
  • Shadcn UI - Attractive, user-friendly visual base thanks to TailwindCSS and RadixUI.
  • Google's Generative AI - Connects to Google's Gemini Pro API.
  • Vercel AI SDK - AI integration for efficient streaming.
  • mdast-util-from-markdown - Markdown syntax parsing and rendering.
  • react-syntax-highlighter - Code syntax highlighting.
  • React-hook-form - Form state management
  • Zod - Validation library for data integrity and security.
  • Nodemailer - For sending feedback mails.

Setting up locally

1. Clone on your local machine

https://github.com/sudipb7/x-clone.git

2. Install dependencies

npm install

3. Add environment variables to your .env file

# Google Gemini API key
GOOGLE_API_KEY=

# Email and password for SMTP server
USER=
PASS=

# Supabase project url and anon key
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=

4. Create Supabase project and create user table

5. Run on your local server

npm run dev

Connect with me

Twitter

LinkedIn