Skip to content

suwa-sh/skyway-sample-peer-auth-js-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SkyWay Peer Authentication & JavaScript SDK Sample

Overview

SkyWayの JavaScript SDK チュートリアルskyway-peer-authentication-samples を、単純につなげたサンプルです。

Setup

1. SkyWayでアプリケーションを作成

2. key の書き換え

  • client/script.js
    • apiKey: SkyWayダッシュボード.アプリケーション一覧 で確認できます。
  • auth_server/sample.rb
    • SECRET_KEY: SkyWayダッシュボード.アプリケーション一覧 -> 設定変更 で確認できます。

3. auth serverのsetup

cd auth_server
bundle install --path vendor/bundle

Run

1. auth server 起動

# terminal1
cd auth_server
bundle exec ruby sample.rb

2. client 起動

# terminal2
cd client
python -m http.server 8000

3. clientにアクセス

http://localhost:8000

About

SkyWay Peer Authentication & JavaScript SDK Sample

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published