Skip to content

giovanicavila/frontend-development-template

Repository files navigation

Frontend Development Template

A production-ready React + TypeScript frontend template built with Vite.

Tech Stack

Technology Purpose
React 19 UI library
TypeScript Static type checking
Vite 8 Build tool and dev server (oxc and rolldown)
React Router 7 Client-side routing
TanStack Query v5 Server state management
Tailwind CSS 4 Utility-first styling
shadcn/ui + Radix UI Accessible component primitives
Motion + Animate UI Animations
Vitest Unit testing
Biome + Ultracite Linting and formatting
Husky Git hooks

Project Structure

src/
β”œβ”€β”€ @types/       # Shared TypeScript type declarations
β”œβ”€β”€ api/          # API layer organized by feature
β”‚   └── [feature]/
β”‚       β”œβ”€β”€ queries/    # TanStack Query hooks
β”‚       └── mutations/  # TanStack Query mutations
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ ui/         # shadcn/ui primitives
β”‚   β”œβ”€β”€ animate-ui/ # Animated components
β”‚   └── sidebar/    # Sidebar layout components
β”œβ”€β”€ config/       # App-level configuration
β”œβ”€β”€ constants/    # Shared constants
β”œβ”€β”€ contexts/     # React contexts (e.g. theme)
β”œβ”€β”€ hooks/        # Custom React hooks
β”œβ”€β”€ layout/       # Root layout
β”œβ”€β”€ lib/          # Utility functions
β”œβ”€β”€ pages/        # Route-level pages
β”œβ”€β”€ providers/    # App-wide providers
β”œβ”€β”€ routes/       # Route definitions
β”œβ”€β”€ tests/        # Vitest test files
└── utils/        # General-purpose utilities

How to Use

This repository is configured as a GitHub template. To start a new project from it:

  1. On the repository page, click Use this template > Create a new repository
  2. Choose a name, visibility, and owner for the new repository
  3. Click Create repository

Then clone and install dependencies locally:

git clone <your-new-repository-url>
cd <your-project>
bun install   # recommended
bun dev

Recommendation: Use Bun as the package manager and runtime. It is significantly faster than npm or pnpm for installs and script execution.

About

πŸ”Ή A production-ready React + TypeScript frontend template built with Vite.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages