Skip to content

tf63/next-template-16

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next.js 16 Template

A template project for Next.js 16 + React 19

Tech Stack

Category Technology
Framework Next.js 16.0.10, React 19.2.3
Language TypeScript
Styling Tailwind CSS, Tailwind Merge 3.4.0
Form React Hook Form 7.56.4, Zod 4.1.13
Testing Vitest, Testing Library, Playwright 1.56.1 (VRT)
Storybook Storybook 10.0.6
Linter / Formatter Biome 2.3.4, Prettier
Git Hooks Lefthook, Commitlint 19.8.1
Package Manager pnpm

Installation

mise install
pnpm install

Commands

Development

Command Description
pnpm dev Start development server (Turbopack)
pnpm build Build for production
pnpm build:analyze Build for production with bundle analysis
pnpm start Start production server

Storybook

Command Description
pnpm storybook Start Storybook development server
pnpm storybook:build Build Storybook

Testing

Command Description
pnpm test Run unit tests
pnpm test:vrt Run visual regression tests
pnpm test:vrt:update Update VRT snapshots
pnpm test:vrt:report Show VRT report

Code Quality

Command Description
pnpm typecheck Type check
pnpm lint Run linter (Biome)
pnpm lint:fix Run linter with auto-fix
pnpm format Check code formatting
pnpm format:fix Format code automatically
pnpm check Run Biome check and Prettier
pnpm check:fix Run Biome check and Prettier with fixes

Code Generation

Command Description
pnpm generate Generate component (plop)

API Documentation

Command Description
pnpm swagger Build and serve Swagger UI
pnpm swagger:build Build Swagger UI from OpenAPI
pnpm swagger:serve Serve Swagger UI (port 6608)

Code Generation

Command Description
pnpm generate Generate component (plop)

Note: Use orval configuration for API client generation from OpenAPI specs

Visual Regression Testing (VRT) with Playwright and Storybook

Setup

Start the Playwright container before running tests:

docker compose up -d

Running VRT

pnpm test:vrt              # Run VRT
pnpm test:vrt:update       # Update VRT snapshots
pnpm test:vrt:report       # Show VRT report (localhost:9001)

Advanced Options

Specify snapshot save path:

SNAPSHOT_PATH=/main/add-button pnpm test:vrt        # Run with custom snapshot path
SNAPSHOT_PATH=/main/add-button pnpm test:vrt:update # Update with custom snapshot path

About

Next.js 16 + React 19 project template with TypeScript, Tailwind CSS, form validation, Storybook, automated testing (unit and visual regression), code quality tooling, and integrated OpenAPI-based API client generation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Generated from tf63/next-template-15