homepage.js/index.js

16 lines
299 B
JavaScript

// do startup jobs
require('./startup');
const express = require('express');
const app = express();
const { APP_PORT } = process.env;
app.use(require('./routes'));
app.use(express.static('public'))
const server = app.listen(APP_PORT, () => {
console.log("Listening on port " + APP_PORT);
});