This project is a frontend template based on Next.js 16 + React 19 + TypeScript. It uses pnpm as the package manager. This guide is written with WebStorm as the IDE and macOS as the OS environment in mind.
Key Dependencies: next 16.0.1, react 19.2.0, @tanstack/react-query, axios, zod, react-toastify
Development Tools: TypeScript, Biome (lint/format)
- Recommended Node.js: v20 LTS or higher (latest LTS recommended for Next.js 16 compatibility)
- Package Manager: pnpm
# Install pnpm (if not already installed)
npm i -g pnpm
# Install dependencies
pnpm install
# Run development server
pnpm devOnce the development server is running, open http://localhost:3000 in your browser.
pnpm dev— Run development serverpnpm build— Create production buildpnpm start— Run built apppnpm lint— Static code analysis with Biomepnpm format— Auto-format with Biome
Root Essential Files:
next.config.ts,tsconfig.json,biome.json,pnpm-lock.yamlsrc/— App Sourcepublic/— Static Assets
Biome configuration is located in biome.json.
- Check:
pnpm lint - Format:
pnpm formatFor WebStorm, one of the following integrations is recommended:
- Register
pnpm lint/pnpm formatas a Run Configuration to execute regularly. - Use File Watchers to automatically run
biome format --writeon save.
Additionally, ensure type safety with TypeScript (Strict mode recommended).
- Node Version Selection: In Preferences → Node.js, specify Node 20 LTS.
- pnpm Usage Setup: In Preferences → Languages & Frameworks → Node.js*, set the package manager to pnpm.
- Path Aliases (Optional): If using
pathsin tsconfig.json, confirm WebStorm's automatic recognition by checking Preferences → TypeScript for project tsconfig indexing. - SCSS Support: In Preferences → Languages & Frameworks → Stylesheets, verify SCSS recognition.
- Run/Debug: Register pnpm dev as an npm run configuration for debugging.
# Production build
pnpm build
# Run the built result
pnpm start