A template for building a React application with Vite, Hono, and Cloudflare Workers
This template provides a minimal setup for building a React application with TypeScript and Vite, designed to run on Cloudflare Workers. It features hot module replacement, ESLint integration, and the flexibility of Workers deployments.
🚀 Supercharge your web development with this powerful stack:
Get started in minutes with local development or deploy directly via the Cloudflare dashboard. Perfect for building modern, performant web applications at the edge.
To start a new project with this template, run:
npm create cloudflare@latest -- --template=cloudflare/templates/vite-react-template
A live deployment of this template is available at: https://react-vite-template.templates.workers.dev
Install dependencies:
npm install
Start the development server with:
npm run dev
Your application will be available at http://localhost:5173.
Build your project for production:
npm run build
Preview your build locally:
npm run preview
Deploy your project to Cloudflare Workers:
npx wrangler deploy