app.js 539 Bytes
const http = require('http');
const express = require('express')
const fs = require('fs');
const path = require('path');
const { rawListeners } = require('process');
var port = 23023;

var app = express();
var router = require('./index')(app);

app.set('port', port);
app.set('views', __dirname + '/static');
app.set('view engine', 'ejs');
app.engine('html', require('ejs').renderFile);

app.use(express.static(__dirname + '/static'));

var server = http.createServer(app).listen(port, function(){
  console.log("Server Running . . .");
})