Skip to content

Repository files navigation

React Starter Template

Frontend foundation / starter for large enterprise React apps and AI-assisted development. It is intentionally thin: plumbing, conventions, and docs — not a demo product.

Stack

  • React 19 + TypeScript
  • Vite
  • pnpm
  • Biome
  • TanStack Router + TanStack Query
  • Zustand
  • Axios
  • Zod + React Hook Form
  • Tailwind CSS v4 + shadcn/ui
  • Vitest + Testing Library
  • Husky + lint-staged + Secretlint

Quick start

pnpm install
cp .env.example .env.local
pnpm dev

Scripts

Script Purpose
pnpm dev Local development server
pnpm build Typecheck + production build
pnpm typecheck TypeScript project build
pnpm lint / pnpm lint:fix Biome check / autofix
pnpm test Vitest watch mode
pnpm test:run Single test run
pnpm test:coverage Coverage with thresholds
pnpm secretlint Secret scanning
pnpm run verify Full local quality gate

Do not use bare pnpm ci for quality — that is pnpm clean-install.

What is intentionally empty

  • No sample IdP / login page (auth store + requireAuth only)
  • No live useQuery feature yet (provider + recipes in PATTERNS.md)
  • No MSW / E2E / Storybook until product needs them (see DECISIONS.md)

Documentation

  • Architecture — folder boundaries, state, networking, testing
  • Patterns — copy-paste recipes for features, Query, forms, auth
  • Deployment — hosting headers, CSP, caching
  • Security — secrets, auth posture, XSS
  • Decisions — adopted and deferred choices
  • Contributing — local workflow, branch/commit rules
  • AGENTS.md — instructions for AI coding agents

Project shape (short)

src/
  app/         # providers + router
  components/  # ui primitives, layout, errors
  config/      # validated environment
  features/    # business domains
  hooks/       # shared hooks
  lib/         # api client, logger, helpers
  routes/      # thin file-based routes

Quality gates

Pre-push and CI enforce lint, typecheck, tests/coverage, secretlint, and production build.

Repository governance

Replace @your-org/... placeholders in CODEOWNERS and the issue-template links with real teams before enabling branch protection.

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages