Feature: First version of the REST API done

This commit is contained in:
2015-08-14 08:04:31 +00:00
commit e6fc0be0ed
28 changed files with 3170 additions and 0 deletions

11
config/db.js Normal file
View File

@@ -0,0 +1,11 @@
module.exports = {
development: {
url: 'mongodb://' + process.env.IP + ':27017/cloudbudget_dev'
},
test: {
url: 'mongodb://localhost:27017/cloudbudget_test'
},
production: {
url: 'mongodb://' + process.env.IP + ':27017/cloudbudget'
},
}

7
config/security.js Normal file
View File

@@ -0,0 +1,7 @@
module.exports = {
jwt : {
secretOrKey : 's3cr3t',
issuer : undefined, // accounts.examplesoft.com
audience : undefined // yoursite.net
}
}

17
config/server.js Normal file
View File

@@ -0,0 +1,17 @@
module.exports = {
development: {
port : process.env.PORT || 3000,
server : process.env.IP || '0.0.0.0',
errorHandlerOptions: {"dumpExceptions": true, "showStack": true}
},
test: {
port : 3000,
server : 'localhost',
errorHandlerOptions: {"dumpExceptions": false, "showStack": false}
},
production: {
port : process.env.PORT || 3000,
server : process.env.IP || '0.0.0.0',
errorHandlerOptions: {"dumpExceptions": false, "showStack": false}
},
}