提交 2521bd6f 编写于 作者: M m0_73544378

Tue Aug 6 11:08:00 CST 2024 inscode

上级 ca207a2f
run = "npm i && npm run dev"
language = "node"
[env]
PATH = "/root/${PROJECT_DIR}/.config/npm/node_global/bin:/root/${PROJECT_DIR}/node_modules/.bin:${PATH}"
XDG_CONFIG_HOME = "/root/.config"
npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global"
\ No newline at end of file
npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global"
[debugger]
program = "main.js"
console.log("欢迎来到 InsCode");
\ No newline at end of file
const express = require('express')
const app = express()
app.get('/',(req,res)=>{
console.log(req.url)
res.send({status:0,message:'welcome'})
})
app.listen(80,()=>{
console.log("欢迎来到 InsCode,listen at http://127.0.0.1:80");
})
......@@ -4,15 +4,15 @@
"description": "",
"main": "index.js",
"scripts": {
"dev": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1"
"dev": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@types/node": "^18.0.6",
"node-fetch": "^3.2.6"
"@types/node": "^18.0.6",
"express": "^4.19.2",
"node-fetch": "^3.2.6"
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册