First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
dev
: Start development serverbuild
: Build for productionstart
: Start production serverlint
: Run ESLint with zero tolerance for warningsformat
: Check formatting with Prettierformat:fix
: Fix formatting issuestypecheck
: Run TypeScript type checkingvalidate
: Runs code quality checks (typecheck, lint, format) in parallel to ensure your code meets project standardsvalidate-and-build
: Run checks and builddeploy
: Validate, build and start
The validate
script is a comprehensive code quality check that:
- Verifies type safety with TypeScript
- Ensures code follows ESLint rules with zero warnings allowed
- Confirms all files adhere to Prettier formatting standards
This script runs automatically as a pre-commit hook via Husky to maintain consistent code quality throughout development.
This project uses commitlint to enforce consistent commit messages. When committing changes:
-
Format your commit message as:
type(scope): subject
-
Valid types include:
feat
: New featuresfix
: Bug fixesdocs
: Documentation changesstyle
: Code style changes (formatting, etc.)refactor
: Code changes that neither fix bugs nor add featurestest
: Adding or modifying testschore
: Changes to the build process or auxiliary toolsevol
: Evolution of existing functionalityci
: Changes to CI configuration files and scriptsrevert
: Reverting a previous commitbuild
: Changes that affect the build system
-
Example commit messages:
feat(auth): add login component fix(navbar): resolve dropdown positioning issue docs(readme): update installation instructions
-
Pre-commit hooks will automatically:
- Run the validate script to check code quality
- Verify your commit message format
This project follows the Next.js App Router architecture with TypeScript and has integrated:
- ESLint for code quality
- Prettier for code formatting
- TypeScript for type checking
- Tailwind CSS for styling
- Husky for Git hooks
- Commitlint for commit message validation