First working server

This commit is contained in:
Alex Janka 2017-06-02 19:00:22 +10:00
parent b3fab4fdc2
commit 5876ba347f

View file

@ -0,0 +1,13 @@
import express = require('express');
import expresshb = require('express-handlebars');
var app = express();
app.engine('handlebars', expresshb({defaultLayout: 'main'}));
app.set('view engine', 'handlebars');
app.get('/', function (req, res) {
res.render('home');
});
app.listen(3000);