Skip to content

Chandrima-Barua/IVSfeaturesnode-v1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Chat Web Demo frontend

Prerequisites

  • 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)

Running the demo

To get the web demo running, follow these instructions:

  1. Install NodeJS. Download latest LTS version ("Recommended for Most Users")
  2. Navigate to the web-ui project directory on your local computer
  3. Run: npm install
  4. Run: npm start
  5. Open your web-browser and enter the URL: http://localhost:3000/

Configuration

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

Limitations

  • 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.

Available Scripts

In the project directory, you can run:

npm start

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.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

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.

Learn More

You can learn more in the Create React App documentation. To learn React, check out the React documentation.

Code Splitting

https://create-react-app.dev/docs/code-splitting/

Analyzing the Bundle Size

https://create-react-app.dev/docs/analyzing-the-bundle-size/

Making a Progressive Web App

https://create-react-app.dev/docs/making-a-progressive-web-app/

Advanced Configuration

https://create-react-app.dev/docs/advanced-configuration/

Deployment

https://create-react-app.dev/docs/deployment/

npm run build fails to minify

https://create-react-app.dev/docs/troubleshooting/#npm-run-build-fails-to-minify

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published