From 194b20456628a22283c0348d89e5a5e688e69186 Mon Sep 17 00:00:00 2001 From: Soo Hwan Park Date: Wed, 21 Nov 2012 03:18:17 -0800 Subject: [PATCH] include LICENSE and bin --- LICENSE | 22 ++++++++++++++++++++++ README.md | 4 ++++ bin/redis-futon | 9 +++++++++ package.json | 13 +++++++++++-- 4 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 LICENSE create mode 100755 bin/redis-futon diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f8123fb --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +Copyright (c) 2012 Soo Hwan Park + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index b460ecb..ab99b6c 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,10 @@ A Web Interface for Redis - The goal for this app provides a couchdb-futon like #### when redis is running already + ./bin/redis-futon 5985 + +or + node index.js 5985 #### with redis-server (when there is no running redis) diff --git a/bin/redis-futon b/bin/redis-futon new file mode 100755 index 0000000..0516063 --- /dev/null +++ b/bin/redis-futon @@ -0,0 +1,9 @@ +#!/usr/bin/env node + +var path = require('path'); +var fs = require('fs'); +var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib'); + +require(lib + '/lib/config'); + +new FutonServer().start(parseInt(process.argv.splice(2)[0]) || 5985); \ No newline at end of file diff --git a/package.json b/package.json index a78de72..ffaa58a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "redis-futon", "version": "0.0.1", "description": "Redis Web Interface", - "main": "lib/main.js", + "main": "index.js", "dependencies": { "redis": "0.8.1", "coffee-script": "1.3.3", @@ -16,9 +16,18 @@ "jasmine-node": "1.0.26", "uglify-js": "1.3.0" }, + "licenses": [ + { + "type": "MIT", + "url": "https://raw.github.com/suwanny/redis-futon/master/LICENSE" + } + ], "directories": { "doc": "docs" }, + "bin": { + "redis-futon": "./bin/redis-futon" + }, "scripts": { "test": "rake spec" }, @@ -30,6 +39,6 @@ "redis", "futon" ], - "author": "Soo Hwan Park", + "author": "Soo Hwan Park (suwanny at gmail dot com)", "license": "BSD" }