Skip to content

About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NashSearch

Overview

NashSearch is an AI-powered chat application built with React, Firebase, and Google's Gemini AI API. Firebase was used for Authentication and chats storage.

Live Demo

Check out the live application: NashSearch

Features

Chat Capabilities

  • AI-Powered Conversations: Interact with Google's Gemini 1.5 Flash model for intelligent responses
  • Real-time Message Delivery: See responses appear with a realistic typing effect
  • Markdown Support: AI responses can include formatted text for better readability

Chat Management

  • Previous Chats: Access your conversation history organized by date
  • Chat History: All conversations are saved automatically for future reference
  • Chat Navigation: Easily switch between different conversation threads
  • New Chat Creation: Start fresh conversations with one click
  • Chat Deletion: Remove unwanted conversations from your history

User Experience

  • Responsive Design: Works seamlessly on desktop, tablet, and mobile devices
  • Dark/Light Mode: Toggle between themes for comfortable viewing in any environment
  • Loading Indicators: Visual feedback when messages are being processed
  • Scroll to Bottom: Automatically scrolls to the latest message
  • Clean Interface: Minimalist design focused on the conversation

Authentication & Security

  • Multiple Sign-in Methods: Register and login with email/password or Google authentication
  • Protected Routes: Chat interface is only accessible to authenticated users
  • Secure Data Storage: All conversations are stored securely in Firebase

Technology Stack

  • Frontend: React.js with React Router for navigation
  • Backend: Firebase (Authentication, Firestore Database)
  • AI Integration: Google Generative AI (Gemini 1.5 Flash)
  • Styling: CSS with dark/light theme support
  • Icons: React Icons library
  • Markdown: ReactMarkdown for message formatting
  • Deployment: Vercel

Screenshots

iimge image image image

Setup Instructions

Prerequisites

  • Node.js and npm installed
  • Firebase account
  • Google Generative AI API key

Installation Steps

  1. Clone the repository:

    git clone https://github.com/yourusername/nashsearch.git
    cd nashsearch
  2. Install dependencies:

    npm install
  3. Configure Firebase:

    • Create a Firebase project at Firebase Console
    • Enable Authentication (Email/Password and Google sign-in methods)
    • Set up Firestore Database with the following structure:
      users/
        {userId}/
          chats/
            {chatId}/
              messages/
                {messageId}/
                  - text
                  - isUser
                  - timestamp
              - title
              - createdAt
              - lastMessage
              - lastUpdated
      
  4. Obtain a Gemini API key:

  5. Start the development server:

    npm start
  6. Open your browser and navigate to http://localhost:3000

Application Structure

Key Components

  • Chat: Main chat interface with message display and input
  • ChatList: Sidebar showing previous conversations
  • Message: Individual message component with typing effect
  • Login: Authentication screen
  • ThemeToggle: Dark/light mode switch

Context Providers

  • AuthContext: Manages user authentication state
  • ThemeContext: Handles dark/light mode preferences

Future Improvements

  • Add user profile management
  • Implement chat categorization and tagging
  • Add message search functionality
  • Improve conversation context handling for more coherent responses
  • Add support for image and file attachments
  • Implement chat sharing functionality
  • Add export options for saving conversations

Learning Resources

This project was built using the following technologies:

About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages