From 26c492b4ee7cd3f1043fd645cc378d4c1c93d3d0 Mon Sep 17 00:00:00 2001 From: marcusferl Date: Fri, 28 Jan 2022 22:53:32 +0100 Subject: [PATCH] added test style --- public/css/style.css | 4 ++++ server.js | 5 ++++- views/index.ejs | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 public/css/style.css diff --git a/public/css/style.css b/public/css/style.css new file mode 100644 index 0000000..a38a8cb --- /dev/null +++ b/public/css/style.css @@ -0,0 +1,4 @@ +body { + background-color: #444444; + color: #f70b0b; +} diff --git a/server.js b/server.js index 0e1f197..d16282c 100644 --- a/server.js +++ b/server.js @@ -3,11 +3,14 @@ const app = express(); const bodyParser = require('body-parser'); const res = require('express/lib/response'); const MongoClient = require('mongodb').MongoClient -const mongoDb = 'mongodb://mymongodb' +const mongoDb = 'mongodb://192.168.0.252:27017' /* View Engine */ app.set('view engine', 'ejs'); +/* Style */ +app.use(express.static(__dirname + '/public')); + /*Mongo Connection*/ MongoClient.connect(mongoDb, (err, client) => { diff --git a/views/index.ejs b/views/index.ejs index 108a579..b4d8684 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -2,6 +2,7 @@ +