@26325001/

UniTracker

Express

No description

fork
loading
Files
  • index.js
  • views
  • package-lock.json
  • package.json
  • README.md
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var express = require('express');
var app = express();
var pug = require('pug');
var bodyParser = require('body-parser');
app.use(express.static('public'));
app.set("view engine", "pug");
var result;
//ReadPosts();
//var currentsposts = ReadPosts();
app.get('/', function(req, res){res.render('index')})
var listener = app.listen(process.env.PORT, function() {
  console.log(listener.address().port);
});