LoginSignup
8
8

More than 5 years have passed since last update.

ShareFestを試した

Posted at

WebRTCをつかった 1:n のファイル交換ができる。

  • ある人が、このページにファイルをアップロード。
  • URLが生成されるので、別の複数の人がそのページヘアクセスするとアップロードしたファイルがダウンロード出来る。

Chrome 26+, Firefox 22+ が必要。

単純な共有なら、問題なくできるので、社内の適当なサーバにいれておくのもいいかもしれない。

npm

npmがインストールされていない人向け

brew update
brew install npm
npm install forever -g

以下をpathに追加する

/usr/local/share/npm/bin

インストール

git clone https://github.com/Peer5/ShareFest.git
cd ShareFest
npm install
chmod +x run-prod.sh

server.jsをちょっといじる

listenが80なので、任意のポート(この場合は8000)に変更

--- a/server.js
+++ b/server.js
@@ -22,8 +22,8 @@ app.configure('development', function () {
 });

 app.configure('production', function () {
-    console.log('listening to port 80')
-    server = app.listen(80); //nodejitsu will map this to 80
+    console.log('listening to port 8000')
+    server = app.listen(8000); //nodejitsu will map this to 80
     signaling.start(server);
 });

起動

./run-prod.sh

無事、http://localhost:8000/へアクセスすると無事 画面が表示され、P2Pによるデータ交換も
できましたとさ。

ちなみに停止は

forever stop server.js
8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8