Giter VIP home page Giter VIP logo

voice-chat-app's Introduction

Voice Chat App

This project is an application using React, NestJS, OpenVidu that allows users to have real-time voice chat with each other.

Usage

Before using the app, you need to clone the repository to your local machine.

  1. Open your terminal and navigate to the directory where you want to clone the repository.
  2. Use the following command to clone the repository:
git clone https://github.com/kadiraydinli/voice-chat-app.git
  1. Next, go to the project directory.
cd voice-chat-app
  1. Make sure Docker is installed on your local machine.
  2. Run yarn setup command to install the node_modules packages for both client and server folders.
  3. Use the yarn up command to start the application. It may take some time for OpenVidu to run. You can follow the logs of openvidu in Docker or at http://localhost:4443 to check if it is up.
  4. Open http://localhost in your browser and start using the app.

Scripts

  • Installs node_modules packages for both client and server folders.
yarn setup
  • Starts the application with Docker.
yarn up
  • Stops the application with Docker.
yarn down
  • Restarts the application.
yarn restart

Note

To use the application on a different device in the same network, you must follow the steps below;

  1. You need to write the local IP address of the computer where the server is running in the VITE_SERVER_URL variable in the .env file in the client folder.

Example:

VITE_SERVER_URL=http://192.168.1.15
  1. In the OPENVIDU_IP variable in the .env file in the main directory, you need to write the local IP address of the computer where the server is running.

Example:

OPENVIDU_IP=192.168.1.15
  1. Open the Chrome browser on the other computer.
  • Type chrome://flags/#unsafely-treat-insecure-origin-as-secure in your browser's address bar and press Enter.
  • Set Unsafe origins treated as secure to `Enabled.
  • Click the Relaunch button to save the settings.
  • Type http://{server running pc ip address} in your browser's address bar and press Enter. You are now ready to use the application.

voice-chat-app's People

Contributors

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