feat: 初始化前后端Node.js控制台项目基础架构

- 创建项目核心文件:package.json、vite.config.js、.gitignore
- 添加前后端基础依赖和开发工具配置
- 完善OpenSpec模块,包括项目文档和核心能力规格
- 配置ESLint和Prettier代码规范
- 创建基本目录结构
- 实现前端Vue3应用框架和路由
- 添加后端Express服务器和基础路由
- 编写README项目说明文档
This commit is contained in:
2026-01-08 11:46:34 +08:00
commit 5f0fa79606
29 changed files with 6181 additions and 0 deletions

31
package.json Normal file
View File

@@ -0,0 +1,31 @@
{
"name": "web-bls-projectconsole",
"version": "1.0.0",
"description": "前后端Node.js控制台项目用于从Redis队列读取日志记录并展示以及发送控制台指令到Redis队列",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"start": "node src/backend/server.js",
"start:dev": "nodemon src/backend/server.js",
"lint": "eslint . --ext .js,.vue",
"format": "prettier --write ."
},
"dependencies": {
"axios": "^1.6.0",
"cors": "^2.8.5",
"express": "^4.18.2",
"redis": "^4.6.10",
"vue": "^3.3.8",
"vue-router": "^4.2.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.5.0",
"eslint": "^8.53.0",
"eslint-plugin-vue": "^9.18.1",
"nodemon": "^3.0.1",
"prettier": "^3.1.0",
"vite": "^5.0.0"
}
}