Coder Social home page Coder Social logo

uenohajime / communication-services-web-calling-hero Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/communication-services-web-calling-hero

0.0 0.0 0.0 2.66 MB

Hero sample to showcase web calling capabilities for Azure Communication Services

License: MIT License

JavaScript 17.14% TypeScript 81.13% CSS 0.99% HTML 0.74%

communication-services-web-calling-hero's Introduction

page_type languages products
sample
typescript
nodejs
azure
azure-communication-services

Deploy to Azure

Group Calling Sample

Overview

This is a sample application to show how we can use the @azure/communication-react package to build a calling experience. Learn more about the Azure Communication Services UI Library. The client-side application is a React based user interface. Alongside this front-end is a NodeJS web application powered by ExpressJS that performs functionality like minting new user tokens for each call participant.

Additional documentation for this sample can be found on Microsoft Docs.

Before contributing to this sample, please read our contribution guidelines.

Homepage

❤️ Feedback

We appreciate your feedback and energy helping us improve our services. Please let us know if you are satisfied with ACS through this survey.

Prerequisites

Code structure

  • ./Calling/src/app: Where the client code lives
  • ./Calling/src/app/App.tsx: Entry point into the calling sample
  • ./Calling/src/app/views/HomeScreen.tsx:
  • ./Calling/src/app/views/CallScreen.tsx:
  • ./Calling/src/app/views/EndCall.tsx:
  • ./Calling/src/app/views/UnsupportedBrowserPage.tsx:
  • ./Server: server code
  • ./Server/appsettings.json: Where to put your azure communication services connection string

Before running the sample for the first time

  1. Open an instance of PowerShell, Windows Terminal, Command Prompt or equivalent and navigate to the directory that you'd like to clone the sample to.

    git clone https://github.com/Azure-Samples/communication-services-web-calling-hero.git`
  2. Get the Connection String from the Azure portal. For more information on connection strings, see Create an Azure Communication Resources

  3. Once you get the Connection String, add the connection string to the samples/Server/appsetting.json file. Input your connection string in the variable: ResourceConnectionString.

  • There are two other properties in the appsettings.json file (EndpointUrl, AdminUserId). For the Calling Hero Sample these two properties are unnecessary. We use this file with our chat hero sample and that is where those strings are used.

Local run

  1. Install dependencies

    npm run setup
  2. Start the calling app

    npm run start

    This will open a client server on port 3000 that serves the website files, and an api server on port 8080 that performs functionality like minting tokens for call participants.

Troubleshooting

  1. The app shows an "Unsupported browser" screen but I am on a supported browser.

    If your app is being served over a hostname other then localhost, you must serve traffic over https and not http.

Publish to Azure

  1. npm run setup
  2. npm run build
  3. npm run package
  4. Use the Azure extension and deploy the Calling/dist directory to your app service

Additional Reading

communication-services-web-calling-hero's People

Contributors

alex-kwan avatar alkwa-msft avatar anjulgarg avatar armansabaa avatar communication-ui-bot avatar dailam-msft avatar ddematheu2 avatar dependabot[bot] avatar dmceachernmsft avatar edwardlee-msft avatar jamesburnside avatar mgamis-msft avatar microsoft-github-operations[bot] avatar microsoftopensource avatar porternan avatar prprabhu-ms avatar ralphgabrinao avatar reedruddy avatar salujamanish avatar timheuer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.