From 30d8aa4bb0fb9cad002b6d8a22d2ebadfe4ad991 Mon Sep 17 00:00:00 2001 From: Gunstick Date: Sun, 1 Sep 2013 22:52:39 +0200 Subject: [PATCH] server for display clients: readme --- displayclienthtml/README | 6 ++++++ displayclienthtml/hello_node.js | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 displayclienthtml/README create mode 100644 displayclienthtml/hello_node.js diff --git a/displayclienthtml/README b/displayclienthtml/README new file mode 100644 index 0000000..7529483 --- /dev/null +++ b/displayclienthtml/README @@ -0,0 +1,6 @@ +this contains currently standalone html pages showing off how the displayclient looks like + +the final setup will be a central server using node.js which gets it's data from the frameserver +and manages the multiple connections to web clients visualizing the virtual building + +howto install node js: http://howtonode.org/how-to-install-nodejs diff --git a/displayclienthtml/hello_node.js b/displayclienthtml/hello_node.js new file mode 100644 index 0000000..fb397a8 --- /dev/null +++ b/displayclienthtml/hello_node.js @@ -0,0 +1,6 @@ +var http = require('http'); +http.createServer(function (req, res) { + res.writeHead(200, {'Content-Type': 'text/plain'}); + res.end('Hello Node.js\n'); +}).listen(8124, "127.0.0.1"); +console.log('Server running at http://127.0.0.1:8124/');