from github to this gitea

This commit is contained in:
oscar.plaisant@icloud.com
2023-10-23 23:09:51 +02:00
commit 38fbb1938d
2899 changed files with 307916 additions and 0 deletions

19
express JS hello world.md Normal file
View File

@@ -0,0 +1,19 @@
up::[[express JS]]
#informatique/javascript
```js
// server-express.js
const express = require('express')
const app = express() // initialize app
const port = 3000
// GET callback function returns a response message
app.get('/', (req, res) => {
res.send('Hello World! Welcome to Node.js')
})
app.listen(port, () => {
console.log(`Server listening at http://localhost:${port}`)
})
```