Merge branch 'master' of https://gitea.arnweb.nl/arne/gymrooster
This commit is contained in:
commit
d5cbdd63e0
846
package-lock.json
generated
846
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -9,9 +9,11 @@
|
||||
"mustache-express": "^1.3.0",
|
||||
"mysql": "^2.18.1"
|
||||
},
|
||||
"devDependencies": {},
|
||||
"devDependencies": {
|
||||
"nodemon": "^2.0.2"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node ./src/index.js"
|
||||
"start": "nodemon ./src/index.js"
|
||||
},
|
||||
"author": "McArn",
|
||||
"license": "ISC"
|
||||
|
@ -2,14 +2,14 @@ const express = require('express');
|
||||
const app = express();
|
||||
const port = 2428;
|
||||
|
||||
const server = app.listen(port, () => console.log(`Gymrooster running on port ${port}`));
|
||||
const server = app.listen(port, () => console.log(`Gymrooster running on port ${port}\nVisit it at http://localhost:${port}`));
|
||||
var path = require('path');
|
||||
|
||||
|
||||
var mustacheExpress = require('mustache-express');
|
||||
|
||||
// Register '.mustache' extension with The Mustache Express
|
||||
app.engine('mustache', mustacheExpress());
|
||||
|
||||
|
||||
app.set('view engine', 'mustache');
|
||||
app.set('views', path.resolve('views/'));
|
||||
|
||||
|
Reference in New Issue
Block a user