Skip to content

Commit c634fd0

Browse files
committed
feat: add Hono
1 parent 1e07017 commit c634fd0

11 files changed

+1155
-5
lines changed

.gitignore

+32-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,33 @@
1+
# prod
2+
dist/
3+
4+
# dev
5+
.yarn/
6+
!.yarn/releases
7+
.vscode/*
8+
!.vscode/launch.json
9+
!.vscode/*.code-snippets
10+
.idea/workspace.xml
11+
.idea/usage.statistics.xml
12+
.idea/shelf
13+
14+
# deps
115
node_modules/
2-
.env
16+
.wrangler
17+
18+
# env
19+
.env
20+
.env.production
21+
.dev.vars
22+
23+
# logs
24+
logs/
25+
*.log
26+
npm-debug.log*
27+
yarn-debug.log*
28+
yarn-error.log*
29+
pnpm-debug.log*
30+
lerna-debug.log*
31+
32+
# misc
33+
.DS_Store

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ TiDB ServerlessとPrismaツール群を利用して、DB周りを楽したい
1212
- [x] シネログのスキーマを移植し、移行ファイルを生成
1313
- [x] Seedデータの反映スクリプトを作成
1414
- [x] シネログの新しいスキーマを反映し、移行ファイルを生成
15-
- [ ] HonoでREST APIを構築し、CRUDを構築
15+
- [x] HonoでREST APIを構築し、CRUDを構築
1616
- [ ] Prisma Accelerateを適用
1717

1818
## 参考資料

biome.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"files": {
4+
"ignore": [".wrangler"]
5+
},
36
"organizeImports": {
47
"enabled": true
58
},

package.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"scripts": {
3+
"dev": "wrangler dev",
4+
"deploy": "wrangler deploy --minify",
35
"check": "biome check --unsafe .",
46
"format": "pnpm check --write",
57
"prepare": "pnpm db:generate",
@@ -13,11 +15,16 @@
1315
"packageManager": "[email protected]",
1416
"devDependencies": {
1517
"@biomejs/biome": "^1.8.3",
18+
"@cloudflare/workers-types": "^4.20241022.0",
1619
"@types/node": "^22.8.4",
1720
"prisma": "^5.21.1",
18-
"tsx": "^4.19.2"
21+
"tsx": "^4.19.2",
22+
"wrangler": "^3.83.0"
1923
},
2024
"dependencies": {
21-
"@prisma/client": "^5.21.1"
25+
"@prisma/client": "^5.21.1",
26+
"@tidbcloud/prisma-adapter": "^5.20.0",
27+
"@tidbcloud/serverless": "^0.2.0",
28+
"hono": "^4.6.8"
2229
}
2330
}

0 commit comments

Comments
 (0)