This project is a chatbot application using Express and the Gemini API.
- Node.js (v14 or higher)
- npm (v6 or higher)
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Install dependencies:
npm install
-
Create a
.envfile in the server directory and add the following environment variables:PORT=5000 API_KEY=<your-gemini-api-key>
-
Start the server: change the directory into '/server'
npm start
-
Open your browser and navigate to
http://localhost:5000to see the application running.
GET /: Returns "Server running on port : 5000`"POST /chat: Handles chat messages and files, and returns responses from the Gemini API.
-
Start the client file index.html: change the directory into '/client'
npm start: It will automatically start live server.