This template provides a comprehensive and opinionated setup for modern React development.
Dependencies to highlight include:
- React 19
- TypeScript 5.8.3 + SWC
- Vite 6
- TailwindCSS 4.1.5
- Radix UI Primitives
- Shadcn-style utilities
- Framer Motion 12
- React Router 7
- React Hook Form 7 + zod
React Bahn also comes pre-packaged with popular development tooling, including battle-tested configurations for Bun, ESLint, Prettier, Husky, TypeScript, and Vitest.
- git
- bun
Also recommended: asdf (to use .tool-versions)
Boostrap a project repo with a curl
command:
curl -s https://raw.githubusercontent.com/mxfng/react-bahn/main/setup.sh | bash -s my-project-name
The setup script clones this repository, runs git init
, updates the project name in package.json
and index.html
, and makes an initial git commit.
After setup completes, install the dependencies and start the development server:
cd my-project-name
bun install
bun dev
The template follows a feature-first architecture with clear separation of concerns:
react-bahn/
βββ public/ # Static assets
βββ src/
β βββ api/ # API client and service abstractions
β βββ assets/ # Project assets (images, fonts, etc.)
β βββ components/ # Reusable UI components
β βββ features/ # Feature-specific components and logic
β βββ layouts/ # Layout components (wrappers, containers)
β βββ lib/ # Utility functions and shared code
β βββ routes/ # Route or page components
βββ .husky/ # Git hooks
You may clone, re-use, re-write, and re-purpose this template for your projects however you'd like.