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