This project is a sample application to try these stack:
- Hono
- React
- Cloudflare wrangler
- To dev server, deploy Cloudflare Workers
- Vite
- To build client codes.
This project is characterized by implementing the islands architecture. For example, shadcn/ui components works.
# Install deps
bun install
# Run dev server and watch codes
bun run dev
# Deploy to Cloudflare Workers (required Cloudflare settings)
bun run deploy├── client.tsx // Entrypoint of client side
├── components // components (that is installed by shadcn/ui)
│ └── ui
│ ├── button.tsx
│ └── checkbox.tsx
├── islands // island components
│ ├── Counter.tsx
│ ├── Hello.tsx
│ └── MyForm.tsx
├── lib // utilities
│ ├── island.tsx
│ └── utils.ts
├── server.tsx // Entrypoint of server side
└── style.css // Entrypoint of tailwind css
bunx --bun shadcn@latest add COMPONENT_NAME