Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.77 KB

README.md

File metadata and controls

44 lines (34 loc) · 1.77 KB

Agora Live Video

Vanilla javascript implmentation of the Agora Video SDK for Web v4.2

A walk-through of the project setup and code: Guide.md

Demo

Group Video Demo

Test the build: https://agoraio-community.github.io/group-video-chat/

Setup

  1. Clone the repo
  2. Rename .env-example file to .env
  3. Add Agora API Key to the .env file

Test in Dev mode

  1. Follow steps in setup
  2. Open the terminal and navigate to repo folder
  3. Use this command to run dev mode with local webserver: npm run dev

Build for production

  1. Follow steps in setup
  2. Open the terminal and navigate to repo folder
  3. Use this command to run the build script: npm run build
  4. Upload the contents of the new dist folder to your webserver
  5. Make sure the server has your Agora API key set in the environment variables using the env variable VITE_AGORA_APP_ID=

Deploy to GitHub Pages

This project is setup with a GitHub actions workflow to deploy the project to GitHub pages, if enabled in the project settings.

To enable GitHub Pages build via GitHub Actions:

  1. Clone or Fork the project (https://github.com/digitallysavvy/group-live-stream)
  2. Click the project's Settings tab
  3. Click the Pages tab in the left column menu
  4. Under Build and deployment, select GitHub Actions as the Source
  5. Click the Environments tab in the left column menu
  6. Click github-pages from the Environments list
  7. Click Add variable under the Environment variable section
  8. Set the name VITE_AGORA_APP_ID and your Agora AppId as the value.
  9. Update the vit.config.js file to update the url if you change the project name