- 新增 .env 文件,配置服务器端口 - 添加 nodemon 作为开发依赖 - 创建服务器入口文件,设置基本路由 - 移除旧的服务器代码 - 更新 package.json,添加启动脚本
22 lines
384 B
JSON
22 lines
384 B
JSON
{
|
|
"name": "pmrx-gm",
|
|
"version": "1.0.0",
|
|
"description": "飘渺儒仙GM管理平添",
|
|
"scripts": {
|
|
"server": "nodemon server/index.js"
|
|
},
|
|
"keywords": [
|
|
"node",
|
|
"vue"
|
|
],
|
|
"author": "kubbo",
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"axios": "^1.8.4",
|
|
"dotenv": "^16.5.0",
|
|
"express": "^5.1.0",
|
|
"mysql": "^2.18.1",
|
|
"nodemon": "^3.1.10"
|
|
}
|
|
}
|