Just clone this and run
pnpm install
wrangler d1 execute D1_DB --local --file .\schema-migration.sql
pnpm run dev
Update the TOML file as you see fit for production
https://www.npmjs.com/package/npm-check-updates
pnpm install -g npm-check-updates
https://developers.cloudflare.com/workers/wrangler/install-and-update/
pnpm install -g wrangler