Giter Site home page Giter Site logo

chat-buddy's Introduction

Python Server with React Frontend

This project is a Python server with a React frontend. It features a chat application powered by the chatGPT model, and a user interface that allows for easy interaction with the AI.

Getting Started

Prerequisites

  • Python 3.8 or higher
  • Node.js 14 or higher

Installation

  1. Clone the repository:
git clone https://github.com/bortlip/chat-buddy.git
  1. Navigate to the python-server directory and install the required Python packages:
cd python-server
pip install -r requirements.txt
  1. Set the OpenAI API key as an environment variable:

For Windows:

set OPENAI_API_KEY=your_api_key_here

For Linux and macOS:

export OPENAI_API_KEY=your_api_key_here
  1. Navigate to the react-frontend directory and install the required Node.js packages:
cd ../react-frontend
npm install

Running the Application

  1. Start the Python server from the python-server directory:
python -m main
  1. In a separate terminal, start the React development server from the react-frontend directory:
cd react-frontend
npm start
  1. Open your browser and navigate to http://localhost:3000 to access the application.

Project Structure

  • python-server: Contains the Python server files, including the chatGPT wrapper and API.
  • react-frontend: Contains the React frontend files, including components, hooks, and styles.

chat-buddy's People

Contributors

bortlip 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.