Skip to content

pun7dam/ChatBot-using-Express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ChatBot Project

This project is a chatbot application using Express and the Gemini API.

Prerequisites

  • Node.js (v14 or higher)
  • npm (v6 or higher)

Setup

  1. Clone the repository:

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

    npm install
  3. Create a .env file in the server directory and add the following environment variables:

    PORT=5000
    API_KEY=<your-gemini-api-key>
    

Run the Project

  1. Start the server: change the directory into '/server'

    npm start
  2. Open your browser and navigate to http://localhost:5000 to see the application running.

Endpoints

  • GET /: Returns "Server running on port : 5000`"
  • POST /chat: Handles chat messages and files, and returns responses from the Gemini API.

Now open index.html

  1. Start the client file index.html: change the directory into '/client'

    npm start: It will automatically start live server.

About

AI chatbot created using Google Gemini API. It uses Node.js backend for API protection and real-time chat capabilities.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published