Functions
This commit is contained in:
parent
d9f7a8d4fc
commit
3321673f62
7 changed files with 378 additions and 1097 deletions
18
express.js
Normal file
18
express.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue