Install the dependencies:
bun iRun an initial database migration:
bun db:pushStart the development server with HMR:
bun devYour application will be available at http://localhost:5173.
Create a production build:
bun run buildDeployment is done using the Wrangler CLI.
First, you need to create a d1 database in Cloudflare.
bunx wrangler d1 create <name-of-your-database>Be sure to update the wrangler.toml file with the correct database name and id.
You will also need to update the drizzle.config.ts file, and then run the production migration:
bun db:generatebun db:migrateTo build and deploy directly to production:
bun run deployTo deploy a preview URL:
bunx wrangler versions uploadYou can then promote a version to production after verification or roll it out progressively.
bunx wrangler versions deployThis template comes with Tailwind CSS already configured for a simple default starting experience. You can use whatever CSS framework you prefer.
Built with ❤️ using React Router.