Browse Source

debug and morgan

windhamdavid 4 years ago
parent
commit
0c698e3a19
2 changed files with 13 additions and 25 deletions
  1. 0 23
      config.js
  2. 13 2
      package.json

+ 0 - 23
config.js

@@ -1,23 +0,0 @@
-var config = {
-  //REDISURL: getEnv('REDISURL'),
-  //PORT: getEnv('PORT'),
-  //FBID: getEnv('FBID'),
-  //FBIDSECRET: getEnv('FBIDSECRET')
-};
-
-conf = {
-    port: 3000,
-    debug: false,
-    dbPort: 6379,
-    dbHost: '127.0.0.1',
-    dbOptions: {}
-};
-
-function getEnv(variable){
-  if (process.env[variable] === undefined){
-    throw new Error('You must create an environment variable for ' + variable);
-  }
-  return process.env[variable];
-};
-
-module.exports = config;

+ 13 - 2
package.json

@@ -16,10 +16,21 @@
     "express": "^4.13.3",
     "body-parser": "^1.14.1",
     "cookie-parser": "~1.3.5",
-    "serve-favicon": "~2.3.0"
+    "serve-favicon": "~2.3.0",
+    "morgan": "~1.6.1",
+    "debug": "~2.2.0"
   },
   "devDependencies": {
-    "gulp": "^3.9.0"
+    "del": "^2.1.0",
+    "gulp": "^3.9.0",
+    "gulp-concat": "^2.6.0",
+    "gulp-jshint": "^2.0.0",
+    "gulp-uglify": "^1.5.1",
+    "jshint-stylish": "^2.1.0",
+    "gulp-minify-css": "^1.2.1",
+    "gulp-minify-html": "^1.0.4",
+    "gulp-nodemon": "^2.0.4",
+    "nodemon": "^1.8.1"
   },
     "scripts": {
     "start": "node app.js"