Files
tool-node/package.json
zhaojunlong f35d4575c8 ```
feat(server): 更新默认端口为 5000 并支持环境变量配置

- 将 Web 服务器默认端口从 3000 更改为 5000
- 支持通过环境变量 PORT 自定义端口
- 添加 dotenv 依赖以加载环境变量
- 更新 README.md 中的所有相关端口说明
- 配置文件 config.json 加入 .gitignore 以防止敏感信息泄露
- 前端 API 地址改为自动检测当前域名和端口,提升部署灵活性
```
2025-12-15 15:58:48 +08:00

23 lines
533 B
JSON

{
"name": "gjzx-scraper",
"version": "1.0.0",
"type": "module",
"description": "工具:采集 https://gjzx.nanjing.gov.cn/gggs/ 公示列表信息及详情",
"main": "src/server.js",
"scripts": {
"start": "node src/server.js"
},
"dependencies": {
"axios": "^1.6.8",
"cheerio": "^1.0.0-rc.12",
"cors": "^2.8.5",
"docx": "^9.5.1",
"dotenv": "^17.2.3",
"express": "^5.2.1",
"iconv-lite": "^0.6.3",
"node-cron": "^4.2.1",
"nodemailer": "^7.0.11",
"pdf-parse": "^2.4.5"
}
}