一覧へ戻る
yusukebe/cloudflare-d1-drizzle-honox-starter(新しいタブで開きます)
主要言語: TypeScript
cloudflare-d1-drizzle-honox-starter
- star 数
- 64
- watcher 数
- 1
- fork 数
- 8
- issue 数
- 0
- 最終更新
- 2024/04/19
主要言語: TypeScript
cloudflare-d1-drizzle-honox-starter
A starter project showing how you can integrate Drizzle ORM and Cloudflare D1 with a HonoX application to build awesome full-stack apps.
Tip
If the above paragraph was a bunch of buzzwords that seem confusing, here's the simple version:
git clone git@github.com:yusukebe/cloudflare-d1-drizzle-honox-starter.git starter
cd starter
npm installnpx wrangler@latest d1 create d1-todo
Note that if you haven't yet used Wrangler, you will be prompted to login to Cloudflare.
Copy the output of this command, which is structured TOML configuration, into your wrangler.toml.
npm run migration:generate
npm run migration:apply:local
npm run deploy
npm run migration:apply:remote
You can see the starter using Prisma instead of Drizzle ORM:
Yusuke Wada https://github.com/yusukebe
MIT