Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

extract examples/server.coffee as nroonga-httpd

  • Loading branch information...
commit dcbdf4eb04d03909431e29afbf987d4c0b63454f 1 parent 433ef38
@darashi darashi authored
Showing with 0 additions and 21 deletions.
  1. +0 −20 examples/server.coffee
  2. +0 −1  package.json
View
20 examples/server.coffee
@@ -1,20 +0,0 @@
-express = require('express')
-nroonga = require('../lib/nroonga')
-
-db = if process.argv.length > 2
- new nroonga.Database(process.argv[2])
-else
- new nroonga.Database()
-
-port = 3000
-
-app = express.createServer()
-app.get '/d/:command', (req, res) ->
- db.command req.params.command, req.query, (error, data) ->
- if error?
- res.send(error.toString() + "\n", 400)
- else
- res.send(data)
-
-app.listen(port)
-console.log "Server listining at port #{port}."
View
1  package.json
@@ -13,7 +13,6 @@
"url": "http://github.com/nroonga/nroonga/issues"
},
"devDependencies": {
- "express":"",
"coffee-script":"",
"expresso":""
},
Please sign in to comment.
Something went wrong with that request. Please try again.