diff options
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | src/server.js | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/package.json b/package.json index 6410762..f0685d4 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "watch": "npm run build && onchange public/styles/* -- npm run css & watchify public/scripts/*.js -o dist/app.js -v", "css": "node-sass public/styles/main.scss dist/app.css --output-style compressed", "build": "rm -r dist/* && npm run css && browserify public/scripts/*.js -o dist/app.js && cp public/fonts/* dist/", - "server": "peerjs --port 4242" + "server": "node src/server.js" }, "keywords": [ "express", diff --git a/src/server.js b/src/server.js new file mode 100644 index 0000000..d9dda79 --- /dev/null +++ b/src/server.js @@ -0,0 +1,2 @@ +const PeerServer = require('peer').PeerServer; +PeerServer({port: 4242, path: '/'}); |