๐Ÿ“ฆ threepointone / vite-react-sammmmm

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/threepointone/vite-react-sammmmm.git
HTTPS git clone https://github.com/threepointone/vite-react-sammmmm.git
SSH git clone git@github.com:threepointone/vite-react-sammmmm.git
CLI gh repo clone threepointone/vite-react-sammmmm
cloudflare[bot] cloudflare[bot] source repo import 767114b 3 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ public
๐Ÿ“ src
๐Ÿ“„ .gitignore
๐Ÿ“„ eslint.config.js
๐Ÿ“„ index.html
๐Ÿ“„ package-lock.json
๐Ÿ“„ package.json
๐Ÿ“„ README.md
๐Ÿ“„ tsconfig.app.json
๐Ÿ“„ tsconfig.json
๐Ÿ“„ tsconfig.node.json
๐Ÿ“„ vite.config.ts
๐Ÿ“„ wrangler.json
๐Ÿ“„ README.md

React + Vite + Hono + Cloudflare Workers

Deploy to Cloudflare

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.

React + TypeScript + Vite + Cloudflare Workers

๐Ÿš€ Supercharge your web development with this powerful stack:

  • React - A modern UI library for building interactive interfaces
  • Vite - Lightning-fast build tooling and development server
  • Hono - Ultralight, modern backend framework
  • Cloudflare Workers - Edge computing platform for global deployment

โœจ Key Features

  • ๐Ÿ”ฅ Hot Module Replacement (HMR) for rapid development
  • ๐Ÿ“ฆ TypeScript support out of the box
  • ๐Ÿ› ๏ธ ESLint configuration included
  • โšก Zero-config deployment to Cloudflare's global network
  • ๐ŸŽฏ API routes with Hono's elegant routing
  • ๐Ÿ”„ Full-stack development setup
  • ๐Ÿ”Ž Built-in Observability to monitor your Worker
Get started in minutes with local development or deploy directly via the Cloudflare dashboard. Perfect for building modern, performant web applications at the edge.

Getting Started

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

Development

Install dependencies:

npm install

Start the development server with:

npm run dev

Your application will be available at http://localhost:5173.

Production

Build your project for production:

npm run build

Preview your build locally:

npm run preview

Deploy your project to Cloudflare Workers:

npm run build && npm run deploy

Monitor your workers:

npx wrangler tail

Additional Resources