18 lines
No EOL
323 B
JavaScript
18 lines
No EOL
323 B
JavaScript
const express = require("express"),
|
|
path = require("path")
|
|
|
|
const PORT = process.env.PORT || 8080
|
|
|
|
var staticPath = path.join(__dirname, "static")
|
|
|
|
var app = express()
|
|
|
|
app.use(express.static(staticPath))
|
|
|
|
app.listen(PORT, () => {
|
|
console.log("Univerter now listening on PORT: " + PORT)
|
|
})
|
|
|
|
module.exports = {
|
|
app
|
|
} |