Skip to content

meirm/react-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatBot App

A conversational AI app inspired by OpenAI's ChatGPT web interface, built with Create React App.

Screenshot

Features

  • Choose from a list of curated prompts.
  • LLM stream for real-time conversation.
  • Ollama API backend support.
  • LM Studio API backend support.
  • Option to set the model, temperature, max tokens and more.
  • Node.js back-end for communication with the OpenAI API.

Requirements

Setup

  1. Clone the repository
git clone https://github.com/meirm/react-chatbot.git
  1. Install client dependencies
cd client
npm install
  1. Install server dependencies
cd server
npm install
  1. Get your Open AI API key from Open AI API Key

  2. Environment Variable Setup

  • Go to server folder and copy file env.example to .env file in root of server folder and edit it.
  • Go to client folder and copy file env.example to .env file in root of server folder and edit it.
  1. Configure Firebase
  • Go to firebase console & click on add project, follow the guidelines to create new firebase project
  • Once project is created you'll see the config file generated for you. If you do not find the config file, see the Project Overview section on the left panel. Just click the gear icon which is at the right of Project Overview, there you'll see the Project Setting.
  • Click on the Project Setting, scroll to the bottom there you'll see "Your apps" section. You need to select web with </> symbols. Click on the icon and follow along to add firebase to your web app. Once you'll have your config file update your firebase.config file in the client/src folder.

Usage

  1. Start the client
cd client
npm start
  1. Start the server
cd server
node index.js
  • Check if your client application run on port 3000 with the development environment configuration, so in your browser just go to http://localhost:3000

  • Check if your server application run on port 4000

Contribution

All contributions are welcome. Feel free to open an issue or create a pull request. And I will be more than happy for sponsors.

Buy Me A Coffee

Credits

Based on the original code from Sushant Dhimal.

https://github.com/dhiant/react-chatGPT-clone.git

forked on March 20th 2024

License

License

About

A chatbot inspired by ChatGPT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published