Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tokeshu/webrtc-provider
https://github.com/tokeshu/webrtc-provider
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tokeshu/webrtc-provider
- Owner: tOkeshu
- License: mpl-2.0
- Created: 2013-02-11T18:13:04.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-10-24T14:28:17.000Z (about 10 years ago)
- Last Synced: 2024-04-15T11:18:27.685Z (8 months ago)
- Language: JavaScript
- Size: 333 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
WebRTC Provider [Deprecated]
===============**Deprecated**: (I leave that here just for the sake of history)
Getting started
---------------To try this code on your local machine you will need to have an xmpp
server. [Prosody](http://prosody.im/) is a good choice for
developement purpose. Once you have an XMPP server you should create a
few users and add them in their respective roster via an xmpp client.On OS X, you'll need to install libicu:
$ brew install icu4c
# ugly workaround from https://github.com/astro/node-stringprep/pull/19/files
$ ln -s /usr/local/Cellar/icu4c//bin/icu-config /usr/local/bin/icu-config
$ ln -s /usr/local/Cellar/icu4c//include/unicode /usr/local/includeThen, checkout the code, install the dependencies and run the server:
$ git clone https://github.com/tOkeshu/webrtc-provider.git
$ cd webrtc-provider
$ npm install
$ node server.jsand open your browser at http://localhost:5000/
On OS X, conservative folks will remove the symlinks created earlier:
$ rm /usr/local/bin/icu-config /usr/local/include/unicode
as these links are intentionally not created by the brew formula due to known
issues.### production
$ npm install -g forever # install forever system wide
$ cd webrtc-provider
$ env AUDIENCE="example.com" XMPP_DOMAIN="example.com" forever -o logs/stdout.log -e logs/stderr.log start server.js
$ forever stop server.js### tests
To run the tests visit http://localhost:5000/tests/
### doc
To compile the in-code documentation you need `yuidoc`:
$ npm install -g yuidocjs
$ yuidoc -T simple .
$ firefox out/index.htmlThe rest of the documentation is in `/docs`.
License
-------All source code here is available under the
[MPL 2.0](https://mozilla.org/MPL/2.0/) license, unless otherwise
indicated.