Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jsparkdev/react-router-cloudflare-pages-template

A minimal template for building a React Router App with Cloudflare Pages.
https://github.com/jsparkdev/react-router-cloudflare-pages-template

biomejs cloudflare-pages react react-router remix shadcn-ui vite

Last synced: about 8 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

# React Router + Cloudflare Pages Template

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

## Features

- [Vite](https://vite.dev/) + [React Router v7](https://reactrouter.com/)
- [shadcn/ui](https://ui.shadcn.com/) - Beautiful and accessible components
- [React](https://react.dev) 19 RC - Release Candidate version with new features
- [Biome](https://biomejs.dev/) - Fast and modern linter and formatter
- Deploy to [Cloudflare Pages](https://pages.cloudflare.com/) with zero configuration

## 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

```bash
# 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