-
Navigate to the react folder.
-
In the terminal, run the following command to download the project's dependencies:
yarn
- Now, with the device connected, execute the command:
yarn android
-
With the application running, access the react/App.js file and, on line 60, replace the ip with your local ip , without changing port 4000.
-
In the running application, click on the "START TRANSMISSION" button. The image from your camera should cover the entire screen.
-
Browse to the server-js folder.
-
In the terminal, run the following command to download the project's dependencies:
npm install
- Now, execute the following command to start the socket:
node index.js
- If everything works out, the message Server running on port 4000 should appear without any errors.
-
Navigate to the browser folder.
-
In the index.html file, on line 30, replace the ip with your local ip, without changing port 4000.
-
The Chrome browser must be opened (make sure you have it on your computer) and then the camera image of the device where the React Native application is running is displayed.