added test style

This commit is contained in:
marcusferl 2022-01-28 22:53:32 +01:00
parent 32ee4da580
commit 26c492b4ee
3 changed files with 9 additions and 1 deletions

4
public/css/style.css Normal file
View File

@ -0,0 +1,4 @@
body {
background-color: #444444;
color: #f70b0b;
}

View File

@ -3,11 +3,14 @@ const app = express();
const bodyParser = require('body-parser'); const bodyParser = require('body-parser');
const res = require('express/lib/response'); const res = require('express/lib/response');
const MongoClient = require('mongodb').MongoClient const MongoClient = require('mongodb').MongoClient
const mongoDb = 'mongodb://mymongodb' const mongoDb = 'mongodb://192.168.0.252:27017'
/* View Engine */ /* View Engine */
app.set('view engine', 'ejs'); app.set('view engine', 'ejs');
/* Style */
app.use(express.static(__dirname + '/public'));
/*Mongo Connection*/ /*Mongo Connection*/
MongoClient.connect(mongoDb, (err, client) => { MongoClient.connect(mongoDb, (err, client) => {

View File

@ -2,6 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<link href="/css/style.css" rel="stylesheet" type="text/css">
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">