Add some example code

main
nightly 2022-09-07 08:39:24 +02:00
parent 907b0ef307
commit d04c7a9ab6
5 changed files with 1032 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules/

View File

@ -1 +1 @@
include("./webserver.js") require("./webserver.js");

1014
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

5
package.json Normal file
View File

@ -0,0 +1,5 @@
{
"dependencies": {
"express": "^4.18.1"
}
}

View File

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