GithubHelp home page GithubHelp logo

isabella232 / amazon-chime-sdk-component-library-react Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cvent/amazon-chime-sdk-component-library-react

0.0 0.0 0.0 11.31 MB

Amazon Chime React Component Library with integrations with the Amazon Chime SDK.

License: Apache License 2.0

Shell 0.06% JavaScript 3.04% TypeScript 96.90%

amazon-chime-sdk-component-library-react's Introduction

Amazon Chime SDK React Components Library

Amazon Chime SDK React Components Library Documentation

Amazon Chime SDK for JavaScript Library

The Amazon Chime SDK makes it easy to add collaborative audio calling, video calling, and screen share features to web applications by using the same infrastructure services that power millions of Amazon Chime online meetings.

The Amazon Chime SDK React Component Library supplies client-side state management and reusable UI components for common web interfaces used in audio and video conferencing applications, including: video tile grids, microphone activity indicators, and call controls. All components come with a simple, modern design, and can be used as-is or restyled with a custom theme. In addition to UI components, the library leverages Reacts' state management tools such as Providers and Hooks to connect to the Amazon Chime SDK for JavaScript and pass data to the UI layer, simplifying state synchronization so that developers can concentrate on building engaging experiences.

The Amazon Chime React Component Library can be added to your web application codebase using npm.

Documentation on these components and how to use them can be found on Amazon Chime SDK React Component Library Documentation.

Please check use-cases in our How-to guide for more information.

To get started, see the following resources:

Amazon Chime SDK

Amazon SDK Pricing

Supported Browsers

Amazon Chime API Reference

Amazon Chime SDK for JavaScript Documentation

Migration from V1 to V2

Examples

Meeting Demo

Chat Demo

Breakout Room Demo

Installation and Development

If you are adding this library to your existing application, add amazon-chime-sdk-component-library-react and the necessary peer dependencies to your project.

npm install --save amazon-chime-sdk-component-library-react amazon-chime-sdk-js styled-components styled-system

Otherwise clone the repo and install the dependencies.

Contributing to the component library

To generate dependencies

git clone https://github.com/aws/amazon-chime-sdk-component-library-react.git
npm install

To run the Storybook server locally

npm start

Build

npm run build

Once you build, check and resolve any warnings you may get like unresolved dependencies or circular dependencies. Remove these as it will help in bundling the library warning/error free.

Test

Run all unit test suites.

npm run test

Run an individual unit test suite.

npm run test -- <filepath>

Run all unit test suites in watch mode

npm run test -- --watch

Run all snapshot test suites. Docker is required to run Puppeteer in a Docker container.

npm run test:snapshots

Troubleshooting

Error 1: Service 'chromium' failed to build : toomanyrequests: You have reached your pull rate limit

You may need to create a Docker Hub account and authenticate pull request from Docker Hub. Unauthenticated (anonymous) users will have the limits enforced via IP.

Error 2: Timeout when you run npm run test:snapshots

You have 2 options:

  1. Set an environment variable WAIT_ON_TIMEOUT=600000 (e.g. 10 minutes. By default, it's 5 minutes). It will wait for a longer time while checking for the server to respond.
  2. Start storybook server locally by running npm start, then run npm run test:snapshots.

Run an individual snapshot test suite, make sure that storybook server is running locally before kicking off the test.

npm run test:snapshots-path -- <filepath>

Run an individual snapshot test suite and override existing snapshot(s).

npm run test:snapshots-path -- <filepath> -u

A code coverage summary will be printed at the end of each npm run test run. Full coverage including coverage for each file is generated in a lcov-report html file that can be rendered in the browser. This is generated in a /coverage directory on each test run.

License

This project is licensed under the Apache-2.0 License.

Copyright 2020-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.

amazon-chime-sdk-component-library-react's People

Contributors

abey-george avatar ajoohongkim avatar alpjor avatar amazon-auto avatar anuranduttaroy avatar bradmanaws avatar brianleipprandt avatar clairchi avatar davejlane avatar dependabot[bot] avatar devalevenkatesh avatar dpwspoon avatar hliu-amazon avatar jing-chen1 avatar justindarc avatar kaaaren avatar landavecalrissian avatar ldai1 avatar ltrung avatar michhyun1 avatar nicklera1 avatar nicolewang930111 avatar p-foucht avatar pfoucht avatar richnew10 avatar rjjlucy avatar schuettc avatar wootsbot avatar xuesichao avatar ziyiz-amzn 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.