Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
mLuby committed Jul 25, 2015
1 parent 93167c1 commit a6026a5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
3 changes: 3 additions & 0 deletions example/.bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory" : "client/bower_components"
}
19 changes: 19 additions & 0 deletions example/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "example",
"version": "1.0.0",
"homepage": "https://github.com/mLuby/grapevine",
"authors": [
"Mike Luby <[email protected]>"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"grapevine-client": "~1.0.1"
}
}
File renamed without changes.
5 changes: 1 addition & 4 deletions example/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ var app = express();
var server = app.listen(3000, function(){
console.log('Server listening at localhost:3000');
});
var path = require('path');

var Grapevine = require('grapevine-server');
Grapevine.setup('/webrtc', app, server);
Expand All @@ -13,6 +12,4 @@ app.get('/sendMessage', function(req, res){
return res.sendStatus(200);
});

app.get('/', function(req, res){
return res.sendFile(path.join(__dirname + '/index.html'));
});
app.use('/', express.static('client'));

0 comments on commit a6026a5

Please sign in to comment.