aboutsummaryrefslogtreecommitdiff
path: root/index.js
blob: 722ced3ab04f6b590f324e76fc258a9023578a8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// noinspection JSUnresolvedVariable,HttpUrlsUsage

const express = require('express');
const app = express();

app.use(express.static('public'));
app.set("view engine", "ejs");

app.get('/', function (req, res) {
    res.render("index");
})

const server = app.listen(8099, function () {
    let host = server.address().address
    let port = server.address().port

    console.log("Example app listening at http://%s:%s", host, port)
})