This is a Next.js application using pnpm as the package manager and shadcn/ui for the component library.
- Framework: Next.js
- Package Manager: pnpm
- UI Components: shadcn/ui
- Styling: Tailwind CSS
- Type Checking: TypeScript
- Linting: ESLint
- Code Formatting: Prettier with Husky pre-commit hooks
First, install the dependencies:
pnpm installThen, run the development server:
pnpm devOpen http://localhost:3000 with your browser to see the result.
pnpm dev- Runs the app in development mode with Turbopackpnpm build- Builds the app for productionpnpm start- Runs the built app in production modepnpm lint- Runs ESLintpnpm typecheck- Runs TypeScript compiler check
nextjs-starter/
├── src/
│ ├── app/ # Next.js app directory
│ └── lib/ # Utility functions and shared code
├── components.json # shadcn/ui configuration
├── package.json
├── tsconfig.json
└── README.md
This project uses Husky and lint-staged to automatically format code before commits. The following file types are formatted:
.js,.jsx,.ts,.tsx- Formatted with Prettier and linted with ESLint.json,.md,.mdx,.css,.scss- Formatted with Prettier