Skip to content

Jimmy the Robot is a friendly chatbot designed to assist users with their queries. This project consists of a Flask-powered backend for processing chatbot logic and a React-based frontend for an interactive user interface. The backend is also containerized using Docker for easy deployment.

License

Notifications You must be signed in to change notification settings

uvindusl/chat-bot-with-gemini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Jimmy the Robot Chatbot

Screenshot from 2025-07-19 23-45-16

Jimmy the Robot is a friendly chatbot designed to assist users with their queries. This project consists of a Flask-powered backend for processing chatbot logic and a React-based frontend for an interactive user interface. The backend is also containerized using Docker for easy deployment.

Table of Contents

Features

  • Interactive Chat Interface: User-friendly React frontend for seamless conversations.
  • Flask Backend: Robust backend to handle chatbot logic and responses.
  • Conversational Flow: Demonstrates basic conversational capabilities (greeting, asking about well-being).
  • Dockerized Backend: Easy deployment and portability of the Flask application using Docker.

Technologies Used

  • Backend:
    • Python 3.x
    • Flask
    • Gemini API
  • Frontend:
    • React
    • JavaScript
    • HTML/CSS
  • Deployment/Containerization:
    • Docker

Getting Started

Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Before you begin, ensure you have the following installed:

Backend Setup (Flask)

  1. Navigate to the backend directory:

    cd chat-bot-with-gemini/backend
  2. Create a virtual environment (recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Create .env file with Gemini API Key:

    Go to Google Ai Studio and genarate API key and create .env file in the project and add this in your .env file API_KEY="add api key here".

  5. Run the Flask application:

    python3 main.py

    The backend will typically run on http://127.0.0.1:8000.

Frontend Setup (React)

  1. Navigate to the frontend directory:

    cd chat-bot-with-gemini/frontend
  2. Install dependencies:

    npm install
  3. Run the React application:

    npm run dev

Docker Setup (Backend)

If you prefer to run the backend using Docker:

  1. Navigate to the backend directory:

    cd chat-bot-with-gemini/backend
  2. Build the Docker image:

    docker build -t jimmy-the-robot-backend:tag .
  3. Run the Docker container:

    docker run -p 8000:8000 jimmy-the-robot-backend

Usage

  1. Ensure both the Flask backend (either directly or via Docker) and the React frontend are running.
  2. Open your web browser and navigate to http://localhost:5173.
  3. You will see the "Jimmy the Robot" chat interface. Type your messages in the input field and click "Send" or press Enter to interact with Jimmy.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Jimmy the Robot is a friendly chatbot designed to assist users with their queries. This project consists of a Flask-powered backend for processing chatbot logic and a React-based frontend for an interactive user interface. The backend is also containerized using Docker for easy deployment.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published