- NodeJS
- Npm is installed with Node.js
- Serverless app deployed and set up. Follow the steps in the serverless app setup to deploy the backend to your AWS account.
To get the web demo running, follow these instructions:
- Install NodeJS. Download latest LTS version ("Recommended for Most Users")
- Navigate to the web-ui project directory on your local computer.
Example:
~/Developer/amazon-vs-ugc-web-demo/web-ui
- Run:
npm install
- Run:
npm start
- Open open this URL in your browser: http://localhost:3000/
The following entry in src/config.js (inside the web-ui project directory) is used to create accounts, signin, modify attributes, etc.
-
USE_MOCK_DATA
- Enabling
USE_MOCK_DATA
will not required a serverless Backend (seeserverless/README.md
) - Default:
false
- Enabling
-
DEFAULT_VIDEO_STREAM
- Default video stream to play inside the video player when in
USE_MOCK_DATA
mode
- Default video stream to play inside the video player when in
-
UGC_API
- API endpoint for retrieving the stream list, signin, signup, getUsers, modify attributes, etc
-
UGC_PATH
- UGC root path,
- default:
"/"
-
SHOW_OFFLINE_STREAMS
- Includes offline streams on homepage when not using mock data (
USE_MOCK_DATA = false
) - Default:
false
- Includes offline streams on homepage when not using mock data (
-
IVS_CHANNEL_TYPE
- IVS Channel type, which determines the allowable resolution and bitrate:
STANDARD
orBASIC
- Default:
STANDARD
- IVS Channel type, which determines the allowable resolution and bitrate:
-
IVS_LATENCY_MODE
- IVS Channel latency mode:
NORMAL
orLOW
- Default:
LOW
- IVS Channel latency mode:
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify