- NodeJS
- Npm is installed with Node.js
- Amazon IVS Simple Chat demo backend (see README.md in the
serverless
folder for details on the configuration)
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
- Run: npm install
- Run: npm start
- Open your web-browser and enter the URL: http://localhost:3000/
The following entries in src/config.js
(inside the web-ui project directory) are used to configure the live video player and the chat websocket address. Both values will be made available to you when setting up the serverless backend using AWS CloudFormation. Show me how.
-
PLAYBACK_URL
- Amazon IVS live video stream to play inside the video player
-
CHAT_WEBSOCKET
- WebSocket address
- No user authentication
- No history
- No name validation
- Name cannot be changed once set
- Name is not saved/not persistent (ie. reloading the page would go back to initial state)
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.
https://create-react-app.dev/docs/code-splitting/
https://create-react-app.dev/docs/analyzing-the-bundle-size/
https://create-react-app.dev/docs/making-a-progressive-web-app/
https://create-react-app.dev/docs/advanced-configuration/
https://create-react-app.dev/docs/deployment/
https://create-react-app.dev/docs/troubleshooting/#npm-run-build-fails-to-minify