This project is an application using React, NestJS, OpenVidu that allows users to have real-time voice chat with each other.
Before using the app, you need to clone the repository to your local machine.
- Open your terminal and navigate to the directory where you want to clone the repository.
- Use the following command to clone the repository:
git clone https://github.com/kadiraydinli/voice-chat-app.git
- Next, go to the project directory.
cd voice-chat-app
- Make sure Docker is installed on your local machine.
- Run
yarn setupcommand to install the node_modules packages for both client and server folders. - Use the
yarn upcommand to start the application. It may take some time for OpenVidu to run. You can follow the logs ofopenviduin Docker or athttp://localhost:4443to check if it is up. - Open http://localhost in your browser and start using the app.
- 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
To use the application on a different device in the same network, you must follow the steps below;
- You need to write the local IP address of the computer where the server is running in the
VITE_SERVER_URLvariable in the.envfile in theclientfolder.
Example:
VITE_SERVER_URL=http://192.168.1.15
- In the
OPENVIDU_IPvariable in the.envfile 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
- Open the Chrome browser on the other computer.
- Type
chrome://flags/#unsafely-treat-insecure-origin-as-securein your browser's address bar and press Enter. - Set
Unsafe origins treated as secureto `Enabled. - Click the
Relaunchbutton 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.