Based on nodejs, express, mongodb, mongoose, jade, i18n, etc.
Asuming you already have Node.js and git installed:
$ git clone https://github.com/osm-ar/node-libreconf
$ cd node-libreconf
$ npm install
$ gulp
Set config/config.js
with your own values.
The configuration object has main properties on which config values are set.
var config = {
development: {},
test: {},
production: {}
}
The set of config values affecting the rutime depends on the environment variable ENV
.
If ENV
is set to development
, then the config values under the property development
will be used by the runtime and not the others.
By default, and if ENV
is not set, the config values under the development
property will be used.
** Tip**
- Check your MongoDB URL first in your config values.
Administration currently is mostly based on writing raw MongoDB objects via a web admin interface based on a swan-admin instance.
The admin interface has a default user/password combination:
- User:
geoinquietos
- Password:
libreconf
The url /admin
show a swan-admin instance.
http://host/admin