NexAI Logo

NexAI: Your AI Companion 🤖

Empowering your digital interactions with cutting-edge AI.

Description 📝

NexAI is a sophisticated chatbot powered by Google’s Gemini model, designed to elevate your user experience through precise and contextually aware responses. Whether you need assistance with inquiries, task management, or professional support, NexAI is here to assist with adaptive learning and a seamless interface.

Features ✨

Technologies Used 🛠️

CategoryTechnology
FrontendNext.js, React, Tailwind CSS, Zustand
BackendNode.js, Google Generative AI
DatabasePrisma, PostgreSQL
AuthenticationSupabase
UI ComponentsRadix UI, Shadcn UI
OtherAxios, ESLint, Remarkable, Highlight.js

Installation 📦

Follow these steps to get NexAI up and running on your local machine:

  1. Clone the repository:

    bash

    git clone <repository-url>
    cd nex-ai
    
  2. Install dependencies:

    bash

    npm install
    # OR
    yarn install
    # OR
    pnpm install
    
  3. Set up environment variables:

    Create a .env.local file in the root directory and add the following:

    DATABASE_URL="Your PostgreSQL database URL"
    GEMINI_API_KEY="Your Google Gemini API key"
    NEXT_BASE_URL="Your application's base URL (e.g., http://localhost:3000)"
    SUPABASE_URL="Your Supabase URL"
    SUPABASE_ANON_KEY="Your Supabase Anon Key"
    SUPABASE_SERVICE_ROLE_KEY="Your Supabase Service Role Key"
    
  4. Run Prisma migrations:

    bash

    npx prisma migrate dev
    
  5. Generate Prisma client:

    bash

    npm run prisma-generate
    
  6. Start the development server:

    bash

    npm run dev
    # OR
    yarn dev
    # OR
    pnpm dev
    

    Open http://localhost:3000 with your browser to see the result.

Usage 🚀

  1. Sign up or log in: Use your credentials or social accounts (Google, GitHub).
  2. Start a conversation: Type your message in the input box and press send.
  3. Explore prompt suggestions: Click on suggested prompts to quickly start conversations.
  4. Customize your profile: Go to settings to personalize NexAI.
  5. Switch themes: Choose your preferred theme in settings for optimal viewing.

Total Lines Of Code

612,110 total

Setting Up the Development Environment

License 📜

This project is open-source and available under the MIT License.