Skip to content

walkerchiu/nextjs-tailwindcss-kit

Repository files navigation

Next.js Starter Kit with TypeScript and TailwindCSS

This is a starter kit for building modern React applications using Next.js, TypeScript, and TailwindCSS.

Prerequisites

  • node (>= 22.7.4)
  • npm (>= 10.8.2)

Installation

  1. Clone the repository:

    git clone [email protected]:walkerchiu/nextjs-tailwindcss-kit.git
    cd nextjs-tailwindcss-kit
  2. Install dependencies:

    npm install
  3. Initialize Husky:

    npx husky init
  4. Run the prepare script:

    npm run prepare

Usage

  1. Start the development server:

    npm run dev

    The application will be available at http://localhost:3000.

  2. Build the application for production:

    npm run build
  3. Run the production build locally:

    npm start
  4. Lint the code:

    npm run lint

Pre-commit Hooks

This project uses lint-staged to run linters on staged files before committing. It ensures that your code meets the project's linting and formatting standards.

To manually run lint-staged, use the following command:

npx lint-staged

The pre-commit hooks configuration is defined in the .pre-commit-config.yaml file.

To set up pre-commit hooks, run the following command:

# Install pre-commit to manage git hooks
brew install pre-commit

# Install the git hook scripts.
pre-commit install

# Run against all the files.
pre-commit run --all-files

Learn More

To learn more about Next.js, TypeScript, and TailwindCSS, take a look at the following resources:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published