Skip to content

Commit

Permalink
adding json and server.js files
Browse files Browse the repository at this point in the history
these files allow the user to build the demo using npm
  • Loading branch information
Michael Cretzman committed Oct 2, 2017
1 parent 955c351 commit ccba6a6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
25 changes: 25 additions & 0 deletions jms/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "websocket-jms-tutorial",
"version": "1.0.0",
"description": "Demo application for Kaazing WebSocket client library",
"main": "index.html",
"scripts": {},
"repository": {
"type": "git",
"url": "https://github.com/kaazing/javascript.client.demos/jms"
},
"keywords": [
"websocket",
"javascript",
"kaazing",
"jms"
],
"author": "Kaazing Corporation",
"license": "MIT",
"dependencies": {
"express": "^4.13.4",
"jquery": "^2.2.3",
"kaazing-javascript-gateway-client": "^4.4.2",
"npm-modernizr": "^2.8.3"
}
}
10 changes: 10 additions & 0 deletions jms/server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Server code for the ReactJS starter app - run with node.js
var express = require('express');
var app = express();
var http = require('http').Server(app);
app.use(express.static(__dirname + 'node_modules'));
app.use(express.static(__dirname));

http.listen(3000, function () {
console.log('listening on *:3000');
});

0 comments on commit ccba6a6

Please sign in to comment.