app.js 537 Bytes
const express = require('express');
const app = express();
const PORT = process.env.PORT || 3000;

//const indexRoute = require("./routes/index");

app.set('views', __dirname + '/views');
app.set('view engine', 'ejs');
app.use(express.static(__dirname + '/public'));
//var postcode = require(postcode.v2.html);
//const fs = require('filesystem')

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

//app.use('/', indexRoute);

app.listen(PORT, function(){
    console.log('listen',PORT);
});