Help us understand the problem. What is going on with this article?

ShareFestを試した

More than 5 years have passed since last update.

https://github.com/Peer5/ShareFest

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
Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away