diff --git a/conf.json b/conf.json deleted file mode 100644 index 5b3c852..0000000 --- a/conf.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "port": 7000, - "sessionSecret": "superDuperSecret for session stuff", - - "user": "github-user-used-with-api-account", - "clientID": "github client id", - "clientSecret": "clientSecret" -} \ No newline at end of file diff --git a/configManager.js b/configManager.js deleted file mode 100644 index 8c48aa9..0000000 --- a/configManager.js +++ /dev/null @@ -1,37 +0,0 @@ -const fileIO = require('./fileIO'); -const CONFIG_FILE_NAME = "conf.json"; - -const config = fileIO.getFileAsJSON(CONFIG_FILE_NAME); - -module.exports= - { - getConfiguration: function() - { - return config; - }, - - syncToDisk: function() - { - fileIO.writeJSONToFile(CONFIG_FILE_NAME, config); - }, - - getPort: function() - { - return config.port; - }, - - getClientID: function() - { - return config.clientID; - }, - - getClientSecret: function() - { - return config.clientSecret; - }, - - getSessionSecret: function() - { - return config.sessionSecret; - } - }; \ No newline at end of file