- Node.js (v14 or higher)
- npm (Node Package Manager)
- Google Cloud account (for hosting)
- Nodemon
- Navigate to the frontend directory:
cd frontend
- Install the dependencies:
npm install
- Navigate to the backend directory:
cd backend
- Install the dependencies:
npm install
- Navigate to the backend directory and run:
sudo nodemon server.js
- Ensure the backend server is running on the desired port (port 80).
- Update your system’s IP address in the
frontend/src/api/config.json
file. - Open another terminal window, navigate to the frontend directory, and run:
This will start the React application, which should open in your default web browser at
npm start
http://localhost:3000
.
- Go to the Google Cloud Console.
- Create a new project.
- Navigate to the Compute Engine section.
- Click on Create Instance.
- Choose the desired configuration (OS, machine type, etc.).
- Ensure that you allow HTTP and HTTPS traffic.
- Use SSH to connect to your VM once it's created.
- Update package lists and install Node.js:
sudo apt update sudo apt install nodejs npm
-
Clone the project from GitHub:
git clone https://<username>:<personal_access_token>@github.com/Shubh-Goyal-07/WebRTC.git
-
Navigate to the backend folder:
cd WebRTC/backend/
-
Install Project Dependencies:
npm install
-
Install nodemon globally:
sudo npm install -g nodemon
-
Run the Backend on the VM:
sudo nodemon server.js
- The server will be accessible via the external IP address of the VM. You can view the IP from the Google Cloud Console.
- Update the external IP address in the
frontend/src/api/config.json
file.
Follow the instructions on the UI to create and join meeting. After creating a meeting, you would get a meeting code which you can share with others for them to join the meeting.