Mon, 22 Dec 2014 23:02:08 +0100
Import initial revision of new project Crosscook.
bin/server | file | annotate | diff | comparison | revisions | |
package.json | file | annotate | diff | comparison | revisions |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/bin/server Mon Dec 22 23:02:08 2014 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +#!/usr/bin/env node 1.5 + 1.6 +var http = require('http'), 1.7 + port = 8080, 1.8 + url = 'http://localhost:' + port + '/'; 1.9 +/* We can access nodejitsu enviroment variables from process.env */ 1.10 +/* Note: the SUBDOMAIN variable will always be defined for a nodejitsu app */ 1.11 +if(process.env.SUBDOMAIN){ 1.12 + url = 'http://' + process.env.SUBDOMAIN + '.jit.su/'; 1.13 +} 1.14 + 1.15 +http.createServer(function (req, res) { 1.16 + res.writeHead(200, {'Content-Type': 'text/plain'}); 1.17 + res.write('hello, I know nodejitsu.'); 1.18 + res.end(); 1.19 +}).listen(port); 1.20 + 1.21 + 1.22 + 1.23 +console.log('The http server has started at: ' + url);
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/package.json Mon Dec 22 23:02:08 2014 +0100 2.3 @@ -0,0 +1,37 @@ 2.4 +{ 2.5 + "name": "crosscook", 2.6 + "version": "0.6.0", 2.7 + "author": "Europalab Networks", 2.8 + "description": "A crossdomain node.js RFC 2109 cookie miner", 2.9 + "license": "GPLv2", 2.10 + "main": "", 2.11 + "repository": { 2.12 + "type": "mercurial", 2.13 + "url": "https://scm.europalab.com/crosscook/" 2.14 + }, 2.15 + "keywords": [ 2.16 + "crosscook", 2.17 + "Node.js", 2.18 + "nodeapps", 2.19 + "application" 2.20 + ], 2.21 + "homepage": "http://xcook.europalab.com/", 2.22 + "scripts": { 2.23 + "start": "node ./bin/server" 2.24 + }, 2.25 + "contributors": [ 2.26 + { 2.27 + "name": "Michael Schloh von Bennewitz", 2.28 + "email": "michael@schloh.com" 2.29 + } 2.30 + ], 2.31 + "dependencies": {}, 2.32 + "devDependencies": {}, 2.33 + "engines": { 2.34 + "node": ">=0.4" 2.35 + }, 2.36 + "bugs": { 2.37 + "url": "http://xcook.europalab.com/" 2.38 + }, 2.39 + "subdomain": "xcook" 2.40 +}