homepage.js/index.js

16 lines
299 B
JavaScript
Raw Normal View History

2023-02-13 02:16:46 +01:00
// do startup jobs
require('./startup');
const express = require('express');
const app = express();
const { APP_PORT } = process.env;
app.use(require('./routes'));
2023-02-18 14:41:24 +01:00
app.use(express.static('public'))
2023-02-13 02:16:46 +01:00
const server = app.listen(APP_PORT, () => {
console.log("Listening on port " + APP_PORT);
});