Code Monkey home page Code Monkey logo

chatapp's Introduction

Chat Application

This is a simple chat application built with a React frontend and an Express backend, utilizing Socket.IO for real-time communication and openai api for chat response.

Prerequisites

  • Docker installed on your machine
  • Docker Compose installed on your machine
  • Openai api key with some credits

Setup Instructions

  1. Clone the Repository:

    git clone https://github.com/ahnge/chatapp.git
    
  2. Move into the project directory:

    cd chatapp
    
  3. Put your openai api key:

    Create .env file in project root and put your OPENAI_API_KEY in it.
    
  4. Build and run the container:

    docker compose up --build
    
  5. Access the application:

    Open your browser and navigate to `http://localhost:3000` to start chatting with CatGPT.
    

Notes

  • Ensure Docker and Docker Compose are properly installed on your machine before starting.
  • The application is set up to use ports 3000 for the frontend and 3001 for the backend. Ensure these ports are available on your machine.

chatapp's People

Contributors

ahnge avatar

Watchers

 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.