This commit is contained in:
bahramsa70 2024-06-11 20:39:23 +03:30
commit 7060aebbad
4 changed files with 1054 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/node_modules

1026
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

18
package.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "express",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "nodemon ./src/app.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.19.2"
},
"devDependencies": {
"nodemon": "^3.1.3"
}
}

9
src/app.js Normal file
View File

@ -0,0 +1,9 @@
const express = require('express')
const app = express()
app.use((req, res, next) => {
res.send('Hello')
})
app.listen(3000)