wip nest course

This commit is contained in:
lenovo
2022-11-19 19:31:59 +01:00
parent f0af98eb02
commit 8fc383c8fc
450 changed files with 0 additions and 66302 deletions

View File

@@ -0,0 +1,9 @@
<!Doctype html>
<html>
<head>
<title>title</title>
</head>
<body>
<h1>hello world</h1>
</body>
</html>

View File

@@ -0,0 +1,17 @@
{
"name": "tests_hugo",
"version": "1.0.0",
"description": "",
"main": "server.js",
"dependencies": {
"express": "^4.18.2"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js"
},
"keywords": [],
"author": "",
"license": "ISC"
}

View File

@@ -0,0 +1,10 @@
const express = require('express')
const server = express()
server.get('/', (req, res) => {
res.sendFile(__dirname + "/" + "index.html")
})
const port = 3000
server.listen(port, console.log(`listening on port ${port} with express`));