diff --git a/README.md b/README.md index a4e0524..4b31105 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Peer Calls -[![Build Status](https://travis-ci.org/jeremija/peer-calls.svg?branch=master)](https://travis-ci.org/jeremija/peer-calls) +[![Build Status](https://travis-ci.org/jeremija/peer-calls.svg?branch=master)](https://travis-ci.org/jeremija/peer-calls) [![npm](https://img.shields.io/npm/v/peer-calls.svg)](https://www.npmjs.com/package/peer-calls) WebRTC peer to peer calls for everyone. See it live in action at [peercalls.com](https://peercalls.com). @@ -12,7 +12,19 @@ Work in progress. # Installation & Running -From git source: +## From npm + +create directory `./peer-calls` and copy [config/default.json](https://raw.githubusercontent.com/jeremija/peer-calls/master/config/default.json) into it. + +```bash +npm install --global peer-calls + +env NODE_CONFIG_DIR=./peer-calls peercalls +``` + +> :warning: Using `--global` is not advised in server environments. [*](https://github.com/jeremija/peer-calls/pull/48) + +## From git source ```bash git clone https://github.com/jeremija/peer-calls.git diff --git a/package.json b/package.json index fd00007..7c904e8 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,15 @@ "description": "Group peer to peer video calls for anybody.", "repository": "https://github.com/jeremija/peer-calls", "main": "src/index.js", + "bin": { + "peercalls": "./src/index.js" + }, "scripts": { "start": "node src/index.js", "start:server": "nodemon src/index.js --ignore build/ --ignore src/client", "start:watch": "chastifol [ npm run js:watch ] [ npm run css:watch ] [ npm run start:server ]", "watch": "", + "prepublishOnly": "npm run build", "build": "npm run css && npm run js", "test": "jest", "test:coverage": "jest --coverage", diff --git a/src/index.js b/src/index.js old mode 100644 new mode 100755