Skip to content

jsparkdev/react-router-cloudflare-pages-template

Repository files navigation

React Router + Cloudflare Pages Template

A minimal template for building a React Router App with Cloudflare Pages.

Features

Project Structure

app/
├── components/     # Reusable UI components
│   └── ui/        # shadcn/ui components
├── lib/           # Utility functions and configuration
├── routes/        # Route components and nested routes
├── entry.client.tsx    # Client entry point
├── entry.server.tsx    # Server entry point
├── root.tsx           # Root layout component
└── routes.ts         # Route configuration

Getting Started

# Install dependencies
pnpm i

# Start dev server at localhost:5173
pnpm dev

# Build for production
pnpm build

# Preview production build
pnpm preview

# Format code
pnpm format

# Run linter
pnpm lint

# Run formatter, linter and sort imports
pnpm check

License

MIT

Sponsor this project

 

Languages