feat: 后端SQLite→MySQL改造,数据库110.42.189.169:9109
- 使用 mysql2 pool 连接外部 MySQL - 初始化表结构 + 默认管理员 + 示例数据 - 清理 unused routes, 移走 db 文件
This commit is contained in:
@@ -9,16 +9,17 @@
|
||||
"dev": "nodemon src/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "^4.21.2",
|
||||
"cors": "^2.8.5",
|
||||
"bcryptjs": "^2.4.3",
|
||||
"jsonwebtoken": "^9.0.2",
|
||||
"better-sqlite3": "^11.8.1",
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^16.4.7",
|
||||
"express": "^4.21.2",
|
||||
"express-rate-limit": "^7.5.0",
|
||||
"helmet": "^8.1.0",
|
||||
"express-rate-limit": "^7.5.0"
|
||||
"jsonwebtoken": "^9.0.2",
|
||||
"mysql2": "^3.22.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"nodemon": "^3.1.9"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user