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-boilerplateInstall 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