Skip to content

πŸ’« A robust and feature-rich boilerplate for Next.js 14 projects, designed to jumpstart your development with best practices and essential tooling.

License

Notifications You must be signed in to change notification settings

tcdtist/public-nextjs14-javascript-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Next.js 14 Boilerplate

A robust and feature-rich boilerplate for Next.js 14 projects, designed to jumpstart your development with best practices and essential tooling.

πŸš€ Features

  • 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

πŸ“¦ Getting Started

Prerequisites

  • Node.js 20.18.0 or later
  • Yarn 1.22.22 or later

Installation

  1. Clone the repository:

    git clone https://github.com/tcdtist/public-nextjs14-boilerplate.git
    cd public-nextjs14-boilerplate
  2. Install dependencies:

    yarn install
  3. Run the development server:

    yarn dev
  4. Open http://localhost:3000 in your browser to see the result.

πŸ› οΈ Project Structure

β”œβ”€β”€ .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

🧰 Available Scripts

  • yarn dev: Run the development server
  • yarn build: Build the application for production
  • yarn start: Start the production server
  • yarn lint: Run ESLint
  • yarn prettier: Check and format code with Prettier
  • yarn commitlint: Lint commit messages

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgements


Built with ❀️ by tcdtist

About

πŸ’« A robust and feature-rich boilerplate for Next.js 14 projects, designed to jumpstart your development with best practices and essential tooling.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published