openvidu-webcomponent: Updated Readme

This commit is contained in:
Carlos Santos 2020-04-02 10:52:30 +02:00 committed by GitHub
parent 6716fd3a38
commit 8af46bc024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,3 +11,34 @@ openvidu-webcomponent
Visit [openvidu.io/docs/tutorials/openvidu-webcomponent/](http://openvidu.io/docs/tutorials/openvidu-webcomponent/)
[OpenViduLogo]: https://secure.gravatar.com/avatar/5daba1d43042f2e4e85849733c8e5702?s=120
### How to build a webcomponent
First of all, the webcomponent is built from openvidu-call so you must to clone this repository first:
```bash
$ git clone https://github.com/OpenVidu/openvidu-call.git
```
And also clone openvidu-tutorials in the same path with:
```bash
$ git clone https://github.com/OpenVidu/openvidu-tutorials.git
```
Once done, you will ned to go to the angular project with:
```bash
$ cd <your-path>/openvidu-call/front/openvidu-call/
```
Install npm dependencies with:
```bash
$ npm install
```
After that the following command will generate and copy the webcomponent files into a openvidu-webcomponent project:
```bash
$ npm run build:openvidu-webcomponent
```