- 创建 db/init.ts 脚本,可自动创建数据库和表 - 更新 db/index.ts,应用启动时自动检查并创建表结构 - 添加 bun run init-db 命令用于初始化数据库 - 更新 README.md 添加数据库初始化说明
22 lines
440 B
JSON
22 lines
440 B
JSON
{
|
|
"name": "my-score-backend",
|
|
"version": "1.0.0",
|
|
"description": "My Score Backend API",
|
|
"type": "module",
|
|
"main": "main.ts",
|
|
"scripts": {
|
|
"start": "bun run main.ts",
|
|
"dev": "bun --watch main.ts",
|
|
"init-db": "bun run db/init.ts"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"hono": "^4.7.11",
|
|
"postgres": "^3.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "latest"
|
|
}
|
|
} |