From 16f2f590166f50e297a21334f0199c02234a0afb Mon Sep 17 00:00:00 2001 From: Anton Konev Date: Sat, 9 May 2015 16:53:10 +0500 Subject: [PATCH] Init simple express server --- server/index.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 server/index.js diff --git a/server/index.js b/server/index.js new file mode 100644 index 0000000..763dd69 --- /dev/null +++ b/server/index.js @@ -0,0 +1,13 @@ +var express = require('express'), + path = require('path'), + fs = require('fs'), + app = express(); + +app.get('/', function(req, res, next) { + res.send('Sup, man!'); +}); + +var sock = path.join(__dirname, 'run', 'index.sock'); +fs.unlinkSync(sock); +console.log(sock); +app.listen(sock); \ No newline at end of file