feat(env): 添加环境变量配置并初始化项目

- 新增 .env 文件,定义服务器端口和 IP 地址
- 创建 .gitignore 文件,忽略 node_modules 目录
- 修改 start.js,从环境变量中读取配置
- 初始化 package-lock.json 和 package.json
- 添加 dotenv 依赖用于加载环境变量
This commit is contained in:
2025-04-09 11:01:02 +08:00
parent c50dbd5b18
commit d1643f054e
5 changed files with 43 additions and 2 deletions

View File

@@ -10,5 +10,8 @@
"server"
],
"author": "kubbo",
"license": "ISC"
"license": "ISC",
"dependencies": {
"dotenv": "^16.4.7"
}
}