Skip to content

ShwetaYadav224/AetherBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 

Repository files navigation

AetherBot

A professional AI chat application with a modern, user-friendly interface.

view

image image

🚀 Getting Started

Follow these instructions to set up and run the project locally.

Prerequisites

  • Node.js (v18 or higher recommended)
  • MongoDB (running locally or a cloud instance like MongoDB Atlas)
  • Git

Installation

  1. Clone the repository:

    git clone <repository_url>
    cd AetherBot
  2. Install dependencies for Backend:

    cd backend
    npm install
  3. Install dependencies for Frontend:

    cd ../frontend
    npm install

Configuration

  1. Backend Environment Variables:

    Create a .env file in the backend directory with the following keys:

    # backend/.env
    
    PORT=5002
    MONGODB_URI=your_mongodb_connection_string
    JWT_SECRET=your_secret_key_for_jwt
    GROQ_API_KEY=your_groq_api_key
    FRONTEND_URL=http://localhost:5173
    • Replace your_mongodb_connection_string with your actual MongoDB URI.
    • Replace your_secret_key_for_jwt with a strong random string.
    • Replace your_groq_api_key with your API key from Groq.
  2. Frontend Environment Variables (Optional):

    The frontend is pre-configured to connect to http://localhost:5002/api. If you need to change this, create a .env file in the frontend directory:

    # frontend/.env
    
    VITE_API_BASE_URL=http://localhost:5002/api

Running the Application

  1. Start the Backend Server:

    Open a terminal, verify you are in the backend directory, and run:

    npm run dev

    You should see: 🚀 Server running in development mode on port 5002 and MongoDB Connected.

  2. Start the Frontend Development Server:

    Open a new terminal, navigate to the frontend directory, and run:

    cd frontend
    npm run dev

    You should see ➜ Local: http://localhost:5173/.

Usage

  1. Open your browser and navigate to http://localhost:5173.
  2. Sign Up: Create a new account using the Signup page.
  3. Login: Log in with your new credentials.
  4. Chat: Start a new chat, send messages, and view your history in the sidebar. Note that chat history is isolated per user.

✨ Features

  • Modern UI: Professional off-white theme with a dotted background pattern.
  • User Isolation: Chat history is private and secured for each specific user.
  • Authentication: Secure Login and Signup functionality.
  • Responsive Design: Fully functional on desktop and mobile devices

About

Developed AetherBot, a Mern-stack AI chat application engineered for scalability and user privacy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages