From c54ae367bee4883b61666c8f3c6bf111bdfd8638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2EFernando=20S=C3=A1nchez?= Date: Thu, 15 Mar 2012 14:28:37 +0100 Subject: [PATCH] Deleted submodules --- .gitignore | 1 + .gitmodules | 6 +++--- config.json | 1 + hookio/config.json | 1 + hookio/monkey.js | 28 ++++++++++++++++++++++++++++ package.json | 2 ++ 6 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 config.json create mode 100644 hookio/config.json create mode 100755 hookio/monkey.js diff --git a/.gitignore b/.gitignore index b7063e1..94fb450 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ tests configuration +node_modules diff --git a/.gitmodules b/.gitmodules index 3ebd6a6..253226d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,6 @@ -[submodule "hookio/hooks/Mailer"] - path = hookio/hooks/Mailer - url = https://github.com/balkian/Hookio-Mailer.git +#[submodule "hookio/hooks/Mailer"] +# path = hookio/hooks/Mailer +# url = https://github.com/balkian/Hookio-Mailer.git #[submodule "configuration"] # path = configuration # url = git@bitbucket.org:balkian/web4.0-configuration.git diff --git a/config.json b/config.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/config.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/hookio/config.json b/hookio/config.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/hookio/config.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/hookio/monkey.js b/hookio/monkey.js new file mode 100755 index 0000000..877450e --- /dev/null +++ b/hookio/monkey.js @@ -0,0 +1,28 @@ +#!/usr/bin/nodejs + +var Hook = require('hook.io').Hook, + express = require('express'), + app = express.createServer(), + io = require('socket.io').listen(app); + +app.listen(8008); + +io.sockets.on('connection', function (socket) { + socket.emit('news', { hello: 'world' }); + socket.on('my other event', function (data) { + console.log(data); + }); +}); + +var monkey = new Hook({ + name: "monkey-hook", + debug: true +}); + + +monkey.on('hook::ready', function () { + console.log('I am online :D'); +}); + +monkey.start(1337); + diff --git a/package.json b/package.json index 0305f83..7674b60 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,8 @@ "name": "Web4.0", "version" : "0.0.1", "dependencies":{ + "socket.io":"*", + "hook.io":"*", "Hook.io-mailer":"git+https://github.com/balkian/Hookio-Mailer.git" } }