[Groonga-commit] groonga/express-kotoumi [master] Add sample application

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Jan 23 11:55:04 JST 2013


YUKI Hiroshi	2013-01-23 11:55:04 +0900 (Wed, 23 Jan 2013)

  New Revision: c1b7343eee76cd176b0c6d30555f5d29c752cb1f
  https://github.com/groonga/express-kotoumi/commit/c1b7343eee76cd176b0c6d30555f5d29c752cb1f

  Log:
    Add sample application

  Added files:
    application.js
  Modified files:
    lib/dashboard-adaptor.js
    package.json

  Added: application.js (+14 -0) 100644
===================================================================
--- /dev/null
+++ application.js    2013-01-23 11:55:04 +0900 (ad912f6)
@@ -0,0 +1,14 @@
+#!/usr/bin/env node
+
+var express = require('express'),
+    kotoumi = require('./index'),
+    http = require('http');
+
+var application = express();
+var server = http.startServer(application);
+application.kotoumi({
+  prefix: '',
+  server: server
+});
+
+serer.listen(13000);

  Modified: lib/dashboard-adaptor.js (+2 -0)
===================================================================
--- lib/dashboard-adaptor.js    2013-01-23 11:50:23 +0900 (c258a75)
+++ lib/dashboard-adaptor.js    2013-01-23 11:55:04 +0900 (5fc41a4)
@@ -1,3 +1,5 @@
+var path = require('path');
+
 exports.registerHandlers = function(application, params) {
   params = params || {};
 

  Modified: package.json (+1 -0)
===================================================================
--- package.json    2013-01-23 11:50:23 +0900 (76bbbff)
+++ package.json    2013-01-23 11:55:04 +0900 (dc62309)
@@ -29,6 +29,7 @@
     "socket.io-client": "*"
   },
   "scripts": {
+    "start": "./application.js",
     "test": "NODE_ENV=test ./node_modules/.bin/mocha --reporter list --ui tdd --timeout 5s"
   },
   "main": "index",
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index