create-fullstack-heroui
v3.0.2
Published
A modern full-stack template with React, HeroUI, Hono, and Cloudflare Workers
Downloads
50
Maintainers
Readme
🚀 Full-Stack HeroUI Template
✨ Features
- ⚡ Vite - Fast development and building
- ⚛️ React 19 - Latest React with TypeScript
- 🎨 HeroUI - Beautiful, accessible UI components
- 🎯 Tailwind CSS v4 - Latest utility-first CSS framework
- 🔥 Hono - Lightweight, fast backend framework
- ☁️ Cloudflare Workers - Edge computing platform
- 🚀 Dynamic API Routes - Automatic route generation
- 📱 Responsive Design - Mobile-first approach
- 🌙 Dark Mode - Built-in dark mode support
- 🔧 TypeScript - Full type safety
- 📦 pnpm - Fast, efficient package manager
This is a modern full-stack template that combines the best of frontend and backend technologies. It features automatic API route generation, beautiful UI components, and edge deployment capabilities.
[!IMPORTANT] When using C3 to create this project, select "no" when it asks if you want to deploy. You need to follow this project's setup steps before deploying.
Getting Started
Outside of this repo, you can start a new project with this template using C3 (the create-cloudflare CLI):
npm create cloudflare@latest -- --template=cloudflare/templates/openapi-templateA live public deployment of this template is available at https://openapi-template.templates.workers.dev
Setup Steps
- Install the project dependencies with a package manager of your choice:
npm install - Create a D1 database with the name "openapi-template-db":
...and update thenpx wrangler d1 create openapi-template-dbdatabase_idfield inwrangler.jsonwith the new database ID. - Run the following db migration to initialize the database (notice the
migrationsdirectory in this project):npx wrangler d1 migrations apply DB --remote - Deploy the project!
npx wrangler deploy - Monitor your worker
npx wrangler tail
Testing
This template includes integration tests using Vitest. To run the tests locally:
npm run testTest files are located in the tests/ directory, with examples demonstrating how to test your endpoints and database interactions.
Project structure
- Your main router is defined in
src/index.ts. - Each endpoint has its own file in
src/endpoints/. - Integration tests are located in the
tests/directory. - For more information read the chanfana documentation, Hono documentation, and Vitest documentation.
