diff --git a/config/config.development.json.sample b/config/config.development.json.sample index 3ed3d2da..b980521d 100755 --- a/config/config.development.json.sample +++ b/config/config.development.json.sample @@ -1,79 +1,79 @@ { - "app": { - "name": "Repo Default" - }, - "server": { + "app": { + "name": "Repo Default" + }, + "server": { + "host": "127.0.0.1", + "port": 3000 + }, + "database": { + "hosts": [ + { "host": "127.0.0.1", - "port": 3000 - }, - "database": { - "hosts": [ - { - "host": "127.0.0.1", - "port": 27017 - } - ], - "username": "", - "password": "", - "database": "serama", - "ssl": false, - "replicaSet": false, - "enableCollectionDatabases": false, - "secondary": { - "hosts": [ - { - "host": "127.0.0.1", - "port": 27018 - } - ], - "username": "", - "password": "", - "replicaSet": false, - "ssl": false - }, - "testdb": { - "hosts": [ - { - "host": "127.0.0.1", - "port": 27017 - } - ], - "username": "", - "password": "" + "port": 27017 + } + ], + "username": "", + "password": "", + "database": "api", + "ssl": false, + "replicaSet": false, + "enableCollectionDatabases": false, + "secondary": { + "hosts": [ + { + "host": "127.0.0.1", + "port": 27018 } + ], + "username": "", + "password": "", + "replicaSet": false, + "ssl": false }, - "auth": { - "tokenUrl": "/token", - "tokenTtl": 1800, - "clientCollection": "clientStore", - "tokenCollection": "tokenStore", - "database": { - "hosts": [ - { - "host": "127.0.0.1", - "port": 27017 - } - ], - "username": "", - "password": "", - "database": "serama" + "testdb": { + "hosts": [ + { + "host": "127.0.0.1", + "port": 27017 } - }, - "caching": { - "enabled": true, - "ttl": 300, - "directory": "./cache/api/", - "extension": "json" - }, - "logging": { - "enabled": true, - "level": "DEBUG", - "path": "./log", - "filename": "dadi-api", - "dateFormat": "", - "extension": "log", - "messageFormat": "<%= label %> - <%= date %> - <%= message %>" - }, - "feedback": false, - "env": "development" + ], + "username": "", + "password": "" + } + }, + "auth": { + "tokenUrl": "/token", + "tokenTtl": 1800, + "clientCollection": "clientStore", + "tokenCollection": "tokenStore", + "database": { + "hosts": [ + { + "host": "127.0.0.1", + "port": 27017 + } + ], + "username": "", + "password": "", + "database": "api" + } + }, + "caching": { + "enabled": true, + "ttl": 300, + "directory": "./cache/api/", + "extension": "json" + }, + "paths": { + "collections": "workspace/collections", + "endpoints": "workspace/endpoints" + }, + "logging": { + "enabled": true, + "path": "./log", + "filename": "dadi-api", + "extension": "log" + }, + "feedback": false } diff --git a/config/config.production.json.sample b/config/config.production.json.sample index 8334fef4..b004f47b 100755 --- a/config/config.production.json.sample +++ b/config/config.production.json.sample @@ -1,78 +1,79 @@ { - "app": { - "name": "Repo Default" - }, - "server": { + "app": { + "name": "Repo Default" + }, + "server": { + "host": "127.0.0.1", + "port": 3000 + }, + "database": { + "hosts": [ + { "host": "127.0.0.1", - "port": 3000 + "port": 27017 + } + ], + "username": "", + "password": "", + "database": "api", + "ssl": false, + "replicaSet": false, + "enableCollectionDatabases": false, + "secondary": { + "hosts": [ + { + "host": "127.0.0.1", + "port": 27018 + } + ], + "username": "", + "password": "", + "replicaSet": false, + "ssl": false }, + "testdb": { + "hosts": [ + { + "host": "127.0.0.1", + "port": 27017 + } + ], + "username": "", + "password": "" + } + }, + "auth": { + "tokenUrl": "/token", + "tokenTtl": 1800, "database": { - "hosts": [ - { - "host": "127.0.0.1", - "port": 27017 - } - ], - "username": "", - "password": "", - "database": "serama", - "ssl": false, - "replicaSet": false, - "enableCollectionDatabases": false, - "secondary": { - "hosts": [ - { - "host": "127.0.0.1", - "port": 27018 - } - ], - "username": "", - "password": "", - "replicaSet": false, - "ssl": false - }, - "testdb": { - "hosts": [ - { - "host": "127.0.0.1", - "port": 27017 - } - ], - "username": "", - "password": "" + "hosts": [ + { + "host": "127.0.0.1", + "port": 27017 } + ], + "username": "", + "password": "", + "database": "api" }, - "logging": { - "enabled": true, - "level": "DEBUG", - "path": "./log", - "filename": "dadi-api", - "dateFormat": "", - "extension": "log", - "messageFormat": "<%= label %> - <%= date %> - <%= message %>" - }, - "auth": { - "tokenUrl": "/token", - "tokenTtl": 1800, - "database": { - "hosts": [ - { - "host": "127.0.0.1", - "port": 27017 - } - ], - "username": "", - "password": "", - "database": "serama" - }, - "clientCollection": "clientStore", - "tokenCollection": "tokenStore" - }, - "caching": { - "enabled": true, - "ttl": 300, - "directory": "./cache/api/", - "extension": "json" - }, - "feedback": false + "clientCollection": "clientStore", + "tokenCollection": "tokenStore" + }, + "caching": { + "enabled": true, + "ttl": 300, + "directory": "./cache/api/", + "extension": "json" + }, + "paths": { + "collections": "workspace/collections", + "endpoints": "workspace/endpoints" + }, + "logging": { + "enabled": true, + "path": "./log", + "filename": "dadi-api", + "extension": "log" + }, + "feedback": false } diff --git a/config/config.qa.json.sample b/config/config.qa.json.sample index 038217a0..e27801f1 100755 --- a/config/config.qa.json.sample +++ b/config/config.qa.json.sample @@ -1,78 +1,79 @@ { - "app": { - "name": "Repo Default" - }, - "server": { - "host": "127.0.0.1", - "port": 3000 - }, - "database": { - "hosts": [ - { - "host": "127.0.0.1", - "port": 27017 - } - ], - "username": "", - "password": "", - "database": "test", - "ssl": false, - "replicaSet": false, - "enableCollectionDatabases": false, - "secondary": { - "hosts": [ - { - "host": "127.0.0.1", - "port": 27018 - } - ], - "username": "", - "password": "", - "replicaSet": false, - "ssl": false - }, - "testdb": { - "hosts": [ - { - "host": "127.0.0.1", - "port": 27017 - } - ], - "username": "", - "password": "" - } - }, - "logging": { - "enabled": true, - "level": "DEBUG", - "path": "./log", - "filename": "dadi-api", - "dateFormat": "", - "extension": "log", - "messageFormat": "<%= label %> - <%= date %> - <%= message %>" - }, - "auth": { - "tokenUrl": "/token", - "tokenTtl": 1800, - "database": { - "hosts": [ - { - "host": "127.0.0.1", - "port": 27017 - } - ], - "username": "", - "password": "", - "database": "test" - }, - "clientCollection": "clientStore", - "tokenCollection": "tokenStore" - }, - "caching": { - "enabled": true, - "ttl": 300, - "directory": "./cache/api/", - "extension": "json" - }, - "feedback": false + "app": { + "name": "Repo Default" + }, + "server": { + "host": "127.0.0.1", + "port": 3000 + }, + "database": { + "hosts": [ + { + "host": "127.0.0.1", + "port": 27017 + } + ], + "username": "", + "password": "", + "database": "test", + "ssl": false, + "replicaSet": false, + "enableCollectionDatabases": false, + "secondary": { + "hosts": [ + { + "host": "127.0.0.1", + "port": 27018 + } + ], + "username": "", + "password": "", + "replicaSet": false, + "ssl": false + }, + "testdb": { + "hosts": [ + { + "host": "127.0.0.1", + "port": 27017 + } + ], + "username": "", + "password": "" + } + }, + "auth": { + "tokenUrl": "/token", + "tokenTtl": 1800, + "database": { + "hosts": [ + { + "host": "127.0.0.1", + "port": 27017 + } + ], + "username": "", + "password": "", + "database": "test" + }, + "clientCollection": "clientStore", + "tokenCollection": "tokenStore" + }, + "caching": { + "enabled": true, + "ttl": 300, + "directory": "./cache/api/", + "extension": "json" + }, + "paths": { + "collections": "workspace/collections", + "endpoints": "workspace/endpoints" + }, + "logging": { + "enabled": true, + "path": "./log", + "filename": "dadi-api", + "extension": "log" + }, + "feedback": false } diff --git a/config/config.test.json.sample b/config/config.test.json.sample index b91ded21..1bf20614 100755 --- a/config/config.test.json.sample +++ b/config/config.test.json.sample @@ -1,79 +1,79 @@ { - "app": { - "name": "Repo Default" - }, - "server": { + "app": { + "name": "Repo Default" + }, + "server": { + "host": "127.0.0.1", + "port": 8000 + }, + "database": { + "hosts": [ + { "host": "127.0.0.1", - "port": 8000 + "port": 27017 + } + ], + "username": "", + "password": "", + "database": "test", + "ssl": false, + "replicaSet": false, + "enableCollectionDatabases": false, + "secondary": { + "hosts": [ + { + "host": "127.0.0.1", + "port": 27018 + } + ], + "username": "", + "password": "", + "replicaSet": false, + "ssl": false }, + "testdb": { + "hosts": [ + { + "host": "127.0.0.1", + "port": 27017 + } + ], + "username": "", + "password": "" + } + }, + "auth": { + "tokenUrl": "/token", + "tokenTtl": 1800, "database": { - "hosts": [ - { - "host": "127.0.0.1", - "port": 27017 - } - ], - "username": "", - "password": "", - "database": "test", - "ssl": false, - "replicaSet": false, - "enableCollectionDatabases": false, - "secondary": { - "hosts": [ - { - "host": "127.0.0.1", - "port": 27018 - } - ], - "username": "", - "password": "", - "replicaSet": false, - "ssl": false - }, - "testdb": { - "hosts": [ - { - "host": "127.0.0.1", - "port": 27017 - } - ], - "username": "", - "password": "" + "hosts": [ + { + "host": "127.0.0.1", + "port": 27017 } + ], + "username": "", + "password": "", + "database": "test" }, - "logging": { - "enabled": true, - "path": "./log", - "filename": "dadi-api", - "extension": "log" - }, - "auth": { - "tokenUrl": "/token", - "tokenTtl": 1800, - "database": { - "hosts": [ - { - "host": "127.0.0.1", - "port": 27017 - } - ], - "username": "", - "password": "", - "database": "test" - }, - "clientCollection": "clientStore", - "tokenCollection": "tokenStore" - }, - "caching": { - "enabled": true, - "ttl": 300, - "directory": "./cache/api/", - "extension": "json" - }, - "paths": { - "collections": "test/acceptance/workspace/collections", - "endpoints": "test/acceptance/workspace/endpoints" - }, - "feedback": false + "clientCollection": "clientStore", + "tokenCollection": "tokenStore" + }, + "caching": { + "enabled": true, + "ttl": 300, + "directory": "./cache/api/", + "extension": "json" + }, + "paths": { + "collections": "test/acceptance/workspace/collections", + "endpoints": "test/acceptance/workspace/endpoints" + }, + "logging": { + "enabled": true, + "path": "./log", + "filename": "dadi-api", + "extension": "log" + }, + "feedback": false } diff --git a/dadi/lib/index.js b/dadi/lib/index.js index 369ab144..7204f8c8 100755 --- a/dadi/lib/index.js +++ b/dadi/lib/index.js @@ -799,6 +799,8 @@ function onListening(e) { startText += ' ----------------------------\n'; console.log(startText); + + console.log(' Copyright %s 2015 DADI+ Limited (https://dadi.tech)'.white, String.fromCharCode(169)); } }