Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Command for running blogsiple
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Mar 30, 2012
1 parent 813cecf commit 6da73a3
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 8 deletions.
29 changes: 23 additions & 6 deletions README.md
Expand Up @@ -3,23 +3,40 @@ Blogsiple - simple blog system example

Blogsiple is the official Node.js testbed for [Create](http://createjs.org/) CMS UI integration. It has been built using the [NodeXT](https://github.com/bergie/nodext) framework.

## Installation
## Installation with NPM

$ npm install
$ npm install -g blogsiple

## Installing with git

Check out this repository from GitHub:

$ git://github.com/bergie/blogsiple.git

Then install dependencies:

You also need a JugglingDB database provider. By default we use Redis:
$ cd blogsiple
$ npm install

$ npm install redis
You also need a JugglingDB database provider. By default we use Redis, which is installed via dependencies.

## Running

$ ./node_modules/nodext/bin/nodext configuration/redis_8001.json
With globally-installed Blogsiple:

$ blogsiple /usr/local/lib/node_modules/blogsiple/configuration/redis_8001.json

With locally-installed Blogsiple:

$ ./bin/blogsiple configuration/redis_8001.json

If you want to use a different database or a server setup, just create your own NodeXT configuration file for Blogsiple.

## Importing blog entries

You can populate the Blogsiple database with blog posts from any RSS feed. Do this with:

$ ./bin/import_rss configuration/redis_8001.json http://bergie.iki.fi/blog/rss.xml
$ ./bin/blogsiple_import_rss configuration/redis_8001.json http://bergie.iki.fi/blog/rss.xml

## TODO

Expand Down
6 changes: 6 additions & 0 deletions bin/blogsiple
@@ -0,0 +1,6 @@
#!/usr/bin/env coffee
nodext = require 'nodext'
cfg = nodext.getConfig()
app = nodext.server.createApplication cfg
app.listen cfg.server.port, ->
console.log "Blogsiple listening in #{cfg.server.hostname} port #{cfg.server.port}"
8 changes: 6 additions & 2 deletions package.json
Expand Up @@ -3,7 +3,7 @@
"description": "Simple CMS for NodeXT and Create",
"keywords": ["cms"],
"author": "Henri Bergius",
"version": "0.0.1",
"version": "0.0.2",
"licenses": [{
"type": "MIT",
"url": "https://github.com/bergie/blogsiple/raw/master/LICENSE"
Expand All @@ -15,7 +15,7 @@
"express": ">=2.5.4",
"express-resource": ">=0.2.4",
"resource-juggling": ">=0.0.1",
"nodext": ">=0.0.7",
"nodext": ">=0.0.8",
"nodext-create": ">=0.0.5",
"coffee-script": ">=1.2.0",
"jugglingdb": ">=0.0.7",
Expand All @@ -29,5 +29,9 @@
"repository": {
"type": "git",
"url": "git://github.com/bergie/blogsiple.git"
},
"bin": {
"blogsiple": "./bin/blogsiple",
"blogsiple_import_rss": "./bin/blogsiple_import_rss"
}
}

0 comments on commit 6da73a3

Please sign in to comment.