Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suwa-sh/skyway-sample-peer-auth-js-sdk
SkyWay Peer Authentication & JavaScript SDK Sample
https://github.com/suwa-sh/skyway-sample-peer-auth-js-sdk
skyway
Last synced: about 2 months ago
JSON representation
SkyWay Peer Authentication & JavaScript SDK Sample
- Host: GitHub
- URL: https://github.com/suwa-sh/skyway-sample-peer-auth-js-sdk
- Owner: suwa-sh
- License: mit
- Created: 2019-10-11T18:00:26.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-01T00:55:03.000Z (about 2 years ago)
- Last Synced: 2023-03-01T11:22:58.117Z (almost 2 years ago)
- Topics: skyway
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SkyWay Peer Authentication & JavaScript SDK Sample
## Overview
SkyWayの [JavaScript SDK チュートリアル](https://webrtc.ecl.ntt.com/js-tutorial.html) と [skyway-peer-authentication-samples](https://github.com/skyway/skyway-peer-authentication-samples) を、単純につなげたサンプルです。
## Setup
### 1. SkyWayでアプリケーションを作成
- 一部を除いて [JavaScript SDK チュートリアル](https://webrtc.ecl.ntt.com/js-tutorial.html) に従って作成
- 変更箇所: `権限(APIキー認証を利用する) = ON`### 2. key の書き換え
- client/script.js
- apiKey: SkyWayダッシュボード.アプリケーション一覧 で確認できます。
- auth_server/sample.rb
- SECRET_KEY: SkyWayダッシュボード.アプリケーション一覧 -> 設定変更 で確認できます。### 3. auth serverのsetup
```bash
cd auth_server
bundle install --path vendor/bundle
```## Run
### 1. auth server 起動
```bash
# terminal1
cd auth_server
bundle exec ruby sample.rb
```### 2. client 起動
```bash
# terminal2
cd client
python -m http.server 8000
```### 3. clientにアクセス
`http://localhost:8000`