diff --git a/app.js.bak b/app.js.bak deleted file mode 100755 index 2663cda..0000000 --- a/app.js.bak +++ /dev/null @@ -1,58 +0,0 @@ -var express = require('express'); -var path = require('path'); -var favicon = require('serve-favicon'); -var logger = require('morgan'); -var cookieParser = require('cookie-parser'); -var bodyParser = require('body-parser'); - -var users = require('./routes/users'); - -var app = express(); - -// expose node_modules to client app -app.use(express.static("./node_modules/")); -app.use(express.static("./app/")); - -// uncomment after placing your favicon in /public -//app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))); -app.use(logger('dev')); -app.use(bodyParser.json()); -app.use(bodyParser.urlencoded({ extended: false })); -app.use(cookieParser()); -app.use(express.static(path.join(__dirname, 'public'))); - -app.use('/users', users); - -// catch 404 and forward to error handler -app.use(function(req, res, next) { - var err = new Error('Not Found'); - err.status = 404; - next(err); -}); - -// error handlers - -// development error handler -// will print stacktrace -if (app.get('env') === 'development') { - app.use(function(err, req, res, next) { - res.status(err.status || 500); - res.json({ - message: err.message, - error: err - }); - }); -} - -// production error handler -// no stacktraces leaked to user -app.use(function(err, req, res, next) { - res.status(err.status || 500); - res.json({ - message: err.message, - error: {} - }); -}); - - -module.exports = app; diff --git a/public/index.html.bak b/public/index.html.bak deleted file mode 100755 index dc0a62b..0000000 --- a/public/index.html.bak +++ /dev/null @@ -1,36 +0,0 @@ - - - Angular 2 QuickStart - - - - - - - - - - - - - - - - - - Loading... - - - \ No newline at end of file diff --git a/tsconfig.json.bak b/tsconfig.json.bak deleted file mode 100755 index f6ad237..0000000 --- a/tsconfig.json.bak +++ /dev/null @@ -1,21 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "module": "system", - "rootDir": "app", - "outDir": "app", - "moduleResolution": "node", - "sourceMap": false, - "inlineSources": true, - "inlineSourceMap": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "removeComments": false, - "noImplicitAny": false - }, - "exclude": [ - "node_modules", - "typings/main", - "typings/main.d.ts" - ] -} \ No newline at end of file