This is a boilerplate project setup for Next.js 14, Shadcn UI, Biome, and Lefthook. It includes a basic configuration to get you started with building a modern web application.
- Getting Started
- Folder Structure
- Scripts
- Dependencies
- Dev Dependencies
- Configuration
- Contributing
- License
To get started with this project, follow the instructions below:
- Clone the repository:
git clone https://github.com/arnavsharma2711/nextjs14-shadcnui-biome-lefthook-boilerplate.git
cd nextjs14-shadcnui-biome-lefthook-boilerplate
- Install dependencies:
npm install
- Run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
├── app/ # Source code
├── components/ # React components
├── lib/ # Utility functions
├── public/ # Static assets
├── .gitignore # Git ignore file
├── biome.json # Biome configuration
├── components.json # ShadcnUI configuration
├── lefthook.yml # Lefthook configuration
├── next.config.js # Next.js configuration
├── package.json # Package dependencies and scripts
├── postcss.config.js # PostCSS configuration
├── README.md # Project documentation
├── tailwind.config.js # Tailwind CSS configuration
└── tsconfig.json # Typescript configuration
npm run dev
: Runs the development server.npm run build
: Builds the application for production.npm run start
: Starts the application in production mode.npm run check
: Runs Biome checks and applies fixes.
class-variance-authority
: ^0.7.0clsx
: ^2.1.1lucide-react
: ^0.424.0next
: 14.2.5react
: ^18react-dom
: ^18tailwind-merge
: ^2.4.0tailwindcss-animate
: ^1.0.7
@biomejs/biome
: 1.8.3@types/node
: ^20@types/react
: ^18@types/react-dom
: ^18lefthook
: ^1.7.11postcss
: ^8tailwindcss
: ^3.4.1typescript
: ^5
Tailwind CSS is configured in tailwind.config.js
. You can customize the theme and extend it as per your requirements.
Lefthook is configured in lefthook.yml
. It helps to manage Git hooks and automate tasks.
Biome is used for checking code quality. You can run the checks using the following command:
npm run check
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a pull request.
This project is licensed under the MIT License.
Feel free to customize the README.md file to better suit your project's needs.