A robust and feature-rich boilerplate for Next.js 14 projects, designed to jumpstart your development with best practices and essential tooling.
- Next.js 14: Leverage the latest features of Next.js for optimal performance and developer experience
- TailwindCSS: Utility-first CSS framework for rapid UI development
- ESLint & Prettier: Ensure code quality and consistency
- Husky & lint-staged: Automate code quality checks before commits
- React Query: Powerful data synchronization for React applications
- Axios: Promise-based HTTP client for the browser and Node.js
- Yup: Object schema validation
- React Icons: Popular icon packs as React components
- Commitlint: Lint commit messages
- Custom hooks: Including useDebounce for performance optimization
- Environment configuration: Easy management of environment variables
- Responsive design: Mobile-first approach with react-responsive
- Node.js 20.18.0 or later
- Yarn 1.22.22 or later
-
Clone the repository:
git clone https://github.com/tcdtist/public-nextjs14-boilerplate.git cd public-nextjs14-boilerplate
-
Install dependencies:
yarn install
-
Run the development server:
yarn dev
-
Open http://localhost:3000 in your browser to see the result.
βββ .github/
βββ .husky/
βββ .vscode/
βββ public/
βββ src/
β βββ app/
β βββ assets/
β βββ components/
β βββ configs/
β βββ constants/
β βββ contexts/
β βββ hooks/
β βββ libs/
β βββ services/
β βββ styles/
β βββ utils/
β βββ validations/
β βββ views/
βββ .env.examples
βββ .eslintignore
βββ .eslintrc.js
βββ .gitignore
βββ .lintstagedrc.js
βββ .nvmrc
βββ .prettierignore
βββ commitlint.config.js
βββ jsconfig.json
βββ next.config.mjs
βββ package.json
βββ postcss.config.js
βββ README.md
βββ tailwind.config.js
βββ yarn.lock
yarn dev
: Run the development serveryarn build
: Build the application for productionyarn start
: Start the production serveryarn lint
: Run ESLintyarn prettier
: Check and format code with Prettieryarn commitlint
: Lint commit messages
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Built with β€οΈ by tcdtist