# HG changeset patch # User Michael Schloh von Bennewitz # Date 1419285728 -3600 # Node ID 14388e456fdf2c2b66fa2539047ec177d362c184 Import initial revision of new project Crosscook. diff -r 000000000000 -r 14388e456fdf bin/server --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/server Mon Dec 22 23:02:08 2014 +0100 @@ -0,0 +1,20 @@ +#!/usr/bin/env node + +var http = require('http'), + port = 8080, + url = 'http://localhost:' + port + '/'; +/* We can access nodejitsu enviroment variables from process.env */ +/* Note: the SUBDOMAIN variable will always be defined for a nodejitsu app */ +if(process.env.SUBDOMAIN){ + url = 'http://' + process.env.SUBDOMAIN + '.jit.su/'; +} + +http.createServer(function (req, res) { + res.writeHead(200, {'Content-Type': 'text/plain'}); + res.write('hello, I know nodejitsu.'); + res.end(); +}).listen(port); + + + +console.log('The http server has started at: ' + url); diff -r 000000000000 -r 14388e456fdf package.json --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/package.json Mon Dec 22 23:02:08 2014 +0100 @@ -0,0 +1,37 @@ +{ + "name": "crosscook", + "version": "0.6.0", + "author": "Europalab Networks", + "description": "A crossdomain node.js RFC 2109 cookie miner", + "license": "GPLv2", + "main": "", + "repository": { + "type": "mercurial", + "url": "https://scm.europalab.com/crosscook/" + }, + "keywords": [ + "crosscook", + "Node.js", + "nodeapps", + "application" + ], + "homepage": "http://xcook.europalab.com/", + "scripts": { + "start": "node ./bin/server" + }, + "contributors": [ + { + "name": "Michael Schloh von Bennewitz", + "email": "michael@schloh.com" + } + ], + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.4" + }, + "bugs": { + "url": "http://xcook.europalab.com/" + }, + "subdomain": "xcook" +}