You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
927 B

2 years ago
# WebRTC React Native App with Signalling
2 years ago
<img src="./public/compressed-react-native-webrtc.jpeg" />
2 years ago
---
2 years ago
## Run the Sample App
Clone the repository to your local environment.
```js
git clone https://github.com/videosdk-live/webrtc.git
```
### Server Setup
#### Step 1: Go to server folder
```js
2 years ago
cd react-native-webrtc-app/server
2 years ago
```
#### Step 2: Install Dependency
2 years ago
2 years ago
```js
npm install
```
#### Step 3: Run the project
2 years ago
2 years ago
```js
npm run start
```
2 years ago
2 years ago
---
### Client Setup
#### Step 1: Go to client folder
```js
2 years ago
cd react-native-webrtc-app/client
2 years ago
```
### Step 2: Install the dependecies
```js
npm install
```
### Step 3: Provide your local Ip address in `SocketIOClient`.
2 years ago
in App.js file, update the Network Ip address.
2 years ago
```js
2 years ago
const socket = SocketIOClient("http://192.168.2.201:3500", {});
2 years ago
```
### Step 4: Run the sample app
Bingo, it's time to push the launch button.
```js
npm run start
npm android
npm ios
```