Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/HusseinTaha/couchdb-node-cms

A CMS for couchdb and nodejs
https://github.com/HusseinTaha/couchdb-node-cms

Last synced: 5 days ago
JSON representation

A CMS for couchdb and nodejs

Awesome Lists containing this project

README

        

couchdb-node-cms
================

A micro CMS for couchdb and nodejs
This project use nodejs and couchdb to manage data from database using html templates.

## Installation

npm install couchdb-node-cms --save

## Usage

var express = require('express')
, CmsEngine = require('couchdb-node-cms')
, config = require('./config');

var app = express();

// options :{
// config: { host: "…", port: "…", user: "", password: "" },
// server: expressServer,
// auth: authentication method,
// apiRoot: “/admin/v1/cms”
// }
var cmsEngine = new CmsEngine({
config: config,
server: app,
auth: function(){},
apiRoot: '/admin'
});

cmsEngine.start();

var server = app.listen(process.env.PORT || 8080, function () {

var host = server.address().address;
var port = server.address().port;

console.log('Server is listening at http://%s:%s', host, port);

});

## Contributing

If you want to contribute, please don't hesitate and send a pull request.

## Release History

* 0.1.4 Initial release