diff --git a/config/default.json b/config/default.json new file mode 100644 index 0000000..180ad5c --- /dev/null +++ b/config/default.json @@ -0,0 +1,3 @@ +{ + "dbHost": "mongodb://localhost/shimapan" +} diff --git a/config/dev.json b/config/dev.json new file mode 100644 index 0000000..180ad5c --- /dev/null +++ b/config/dev.json @@ -0,0 +1,3 @@ +{ + "dbHost": "mongodb://localhost/shimapan" +} diff --git a/config/test.json b/config/test.json new file mode 100644 index 0000000..d39e6e2 --- /dev/null +++ b/config/test.json @@ -0,0 +1,3 @@ +{ + "dbHost": "mongodb://localhost/shimapan-test" +} \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..2533d85 --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,13 @@ +var gulp = require('gulp'); +var concat = require('gulp-concat'); +var rename = require('gulp-rename'); +var uglify = require('gulp-uglify'); + +var jsFiles = 'public/js/**/*.js', + jsDest = 'public/libs/app'; + +gulp.task('concat', function() { + return gulp.src(jsFiles) + .pipe(concat('app.js')) + .pipe(gulp.dest(jsDest)); +}); diff --git a/package.json b/package.json index 5dc7f8a..484d138 100644 --- a/package.json +++ b/package.json @@ -6,13 +6,14 @@ "angular-ui-router": "^0.4.3", "async": "^2.5.0", "body-parser": "^1.18.2", - "express": "latest", + "config": "^1.26.2", + "express": "^4.16.2", "express-jwt": "^5.3.0", - "gulp": "latest", "jsonwebtoken": "^8.1.0", "jwt-sign": "^0.1.0", "method-override": "latest", - "mongoose": "latest", + "mongoose": "^4.12.1", + "morgan": "^1.9.0", "multer": "^1.3.0", "ng-file-upload": "^12.2.13", "passport": "^0.4.0", @@ -20,7 +21,16 @@ }, "description": "A simple file sharing website.", "main": "index.js", - "devDependencies": {}, + "devDependencies": { + "chai": "^4.1.2", + "chai-http": "^3.0.0", + "gulp": "latest", + "gulp-concat": "^2.6.1", + "gulp-rename": "^1.2.2", + "gulp-uglify": "^3.0.0", + "mocha": "^4.0.1", + "nyc": "^11.2.1" + }, "author": "Jack Foltz", "license": "WTFPL", "scripts": { diff --git a/public/views/index.html b/public/views/index.html index bb81942..81dca7f 100644 --- a/public/views/index.html +++ b/public/views/index.html @@ -14,11 +14,8 @@ - - - - - + +