changed from php to express.js

This commit is contained in:
Valentijn :)
2024-01-16 11:58:57 +01:00
parent 204209b658
commit 4346bcc35b
6 changed files with 146 additions and 3 deletions

16
server.js Normal file
View File

@@ -0,0 +1,16 @@
const express = require('express')
const app = express()
const port = 3000
app.use(express.static("public"))
const documentRoot = `${__dirname}/http`
app.get('/', (req, res) => {
res.send('Hello World!')
})
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})