Git Product home page Git Product logo

react-chatgpt-clone's Introduction

Talkbot App

A conversational AI app inspired by OpenAI's GPT-3 language model, built with Create React App.

Features

  • Natural language processing and understanding
  • Context-aware responses
  • Ability to converse on a variety of topics
  • React-based front-end for easy user interaction
  • Node.js back-end for communication with the OpenAI API

Requirements

Setup

  1. Clone the repository
git clone https://github.com/dhiant/react-chatGPT-clone.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 create .env file in root of server folder and create a variable REACT_APP_OPENAI_API_KEY = [ Your Open AI key here ] insise .env file as
REACT_APP_OPENAI_API_KEY = [Your Open AI key here]

  1. Configure Firebase
  • Go to firbase 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

Liscence

This project is licensed under the Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license.

This means that you can use, copy, and modify the code as long as you give credit to the original author (attribution), don't use it for commercial purposes (non-commercial), and distribute any modifications under the same license (share alike).

Please note that this license applies to the code in this repository only, and does not apply to the OpenAI API, which is subject to its own license agreement.

Liscence

react-chatgpt-clone's People

Contributors

dhiant avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.