From 3f46f17d8fed806f3767b9c64d8fbeb14a03b81f Mon Sep 17 00:00:00 2001 From: aryan574 Date: Sun, 27 Nov 2016 20:15:31 +0530 Subject: [PATCH] Update server.js --- server.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/server.js b/server.js index 3d5cece3ab..cfe95f78d4 100644 --- a/server.js +++ b/server.js @@ -1,3 +1,28 @@ +/*var express = require('express'); +var morgan = require('morgan'); +var path = require('path'); + +var app = express(); +app.use(morgan('combined')); + +app.get('/', function (req, res) { + res.sendFile(path.join(__dirname, 'ui', 'index.html')); +}); + +app.get('/ui/style.css', function (req, res) { + res.sendFile(path.join(__dirname, 'ui', 'style.css')); +}); + +app.get('/ui/madi.png', function (req, res) { + res.sendFile(path.join(__dirname, 'ui', 'madi.png')); +}); + + +var port = 8080; // Use 8080 for local development because you might already have apache running on 80 +app.listen(8080, function () { + console.log(`IMAD course app listening on port ${port}!`); +});*/ + var express = require('express'); var morgan = require('morgan'); var path = require('path');