/workers-d1-hono-drizzle-template

Workers, D1, Hono, Drizzle Template

Primary LanguageTypeScript

Workers,D1,Hono,Drizzle Template


1.Change wrangle configs

rename wrangler.example.toml to wrangler.toml and configure it based on your project

2.Migrate D1 database

pnpm run db:generate # to generate migration files
pnpm run db:apply <db-name> --local # for local db
pnpm run db:apply <db-name> --remote # for cf db

3. Run project locally

pnpm run dev

4. Deploy project to Workers

pnpm run deploy