diff --git a/.gitignore b/.gitignore index 8a8fd81..cbca2a3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ /nbproject/ /node_modules/ -/build/* -!/build/jquery-3.1.1.min.js \ No newline at end of file +/build/ \ No newline at end of file diff --git a/app.js b/app.js index 8a096cb..5e79fe9 100644 --- a/app.js +++ b/app.js @@ -31,7 +31,6 @@ server.listen(8085, () => { console.log('App listening at http://localhost:8085'); }); - // uncomment after placing your favicon in /public //app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))); app.use(logger('dev')); @@ -40,14 +39,8 @@ app.use(bodyParser.urlencoded({extended: false})); app.use(cookieParser()); //app.use(express.static(path.join(__dirname, 'public'))); -//app.use(express.static('./build/')); -//app.use('/*', express.static('./build/index.html')); //Always keep as last route -//app.use('/', express.static(__dirname + '/build')); -/*app.use('/*', function (req, res) { - console.log("AllRouter"); - res.sendFile(__dirname + '/build/index.html'); -}); -*/ +//Production +app.use(express.static('./build/')); io.on('connection', (socket) => { socket.emit('test', 'Connectedddd'); diff --git a/client/app/app.js b/client/app/app.js index ebe2a9e..1776982 100644 --- a/client/app/app.js +++ b/client/app/app.js @@ -14,9 +14,10 @@ import './home'; import './services' import './auth'; import './canvas'; -import './normalize.css'; -import './style.css'; import 'angular-material'; +//development +//import './normalize.css'; +//import './style.css'; // Create and bootstrap application const requires = [ diff --git a/client/app/config/app.run.js b/client/app/config/app.run.js index 270a698..9e711f4 100644 --- a/client/app/config/app.run.js +++ b/client/app/config/app.run.js @@ -3,7 +3,6 @@ function AppRun(AppConstants, $rootScope) { // change page title based on state $rootScope.$on('$stateChangeSuccess', (event, toState) => { - console.log(toState); $rootScope.setPageTitle(toState.title); }); diff --git a/client/app/config/app.templates.js b/client/app/config/app.templates.js index b90df68..c9bc7bc 100644 --- a/client/app/config/app.templates.js +++ b/client/app/config/app.templates.js @@ -1,14 +1,14 @@ angular.module('templates', []).run(['$templateCache', function($templateCache) {$templateCache.put('auth/auth.html','
\r\n
\r\n\r\n

\r\n

\r\n \r\n Have an account?\r\n \r\n\t\t \r\n Need an account?\r\n \r\n

\r\n\t\t\r\n\t\t\r\n\r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n
'); $templateCache.put('canvas/canvas.html','