Skip to content

Commit

Permalink
feat: add Hono
Browse files Browse the repository at this point in the history
  • Loading branch information
windchime-yk committed Oct 31, 2024
1 parent 1e07017 commit c634fd0
Show file tree
Hide file tree
Showing 11 changed files with 1,155 additions and 5 deletions.
33 changes: 32 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,33 @@
# prod
dist/

# dev
.yarn/
!.yarn/releases
.vscode/*
!.vscode/launch.json
!.vscode/*.code-snippets
.idea/workspace.xml
.idea/usage.statistics.xml
.idea/shelf

# deps
node_modules/
.env
.wrangler

# env
.env
.env.production
.dev.vars

# logs
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# misc
.DS_Store
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ TiDB ServerlessとPrismaツール群を利用して、DB周りを楽したい
- [x] シネログのスキーマを移植し、移行ファイルを生成
- [x] Seedデータの反映スクリプトを作成
- [x] シネログの新しいスキーマを反映し、移行ファイルを生成
- [ ] HonoでREST APIを構築し、CRUDを構築
- [x] HonoでREST APIを構築し、CRUDを構築
- [ ] Prisma Accelerateを適用

## 参考資料
Expand Down
3 changes: 3 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"files": {
"ignore": [".wrangler"]
},
"organizeImports": {
"enabled": true
},
Expand Down
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"scripts": {
"dev": "wrangler dev",
"deploy": "wrangler deploy --minify",
"check": "biome check --unsafe .",
"format": "pnpm check --write",
"prepare": "pnpm db:generate",
Expand All @@ -13,11 +15,16 @@
"packageManager": "[email protected]",
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@cloudflare/workers-types": "^4.20241022.0",
"@types/node": "^22.8.4",
"prisma": "^5.21.1",
"tsx": "^4.19.2"
"tsx": "^4.19.2",
"wrangler": "^3.83.0"
},
"dependencies": {
"@prisma/client": "^5.21.1"
"@prisma/client": "^5.21.1",
"@tidbcloud/prisma-adapter": "^5.20.0",
"@tidbcloud/serverless": "^0.2.0",
"hono": "^4.6.8"
}
}
Loading

0 comments on commit c634fd0

Please sign in to comment.