jsdeveloperr / next13-boilerplate

Boilerplate to help developers to have a fast project configuration using the most recent next version and some tools to improve the developer experience.

Home Page:https://nextjs13-boilerplate.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a readme from next.js 13 boilerplate.

Next.js 13 Boilerplate

ts next react redux redux-saga tailwindcss

Boilerplate to help developers to have a fast project configuration using the most recent next version and some tools to improve the developer experience.

πŸš€ Example

Check our πŸ‘‰ example

πŸ—‚ Features

  • πŸ”₯ Next.js for Static Site Generator
  • 🎨 Integrate with Tailwind CSS
  • πŸŽ‰ Type checking TypeScript
  • βœ… Strict Mode for TypeScript and React 17
  • ✏️ Linter with ESLint (default NextJS, NextJS Core Web Vitals and Airbnb configuration)
  • πŸ›  Code Formatter with Prettier
  • 🦊 Husky for Git Hooks
  • 🚫 Lint-staged for running linters on Git staged files
  • πŸ—‚ VSCode configuration: Debug, Settings, Tasks and extension for PostCSS, ESLint, Prettier, TypeScript
  • πŸ€– SEO metadata, JSON-LD and Open Graph tags with Next SEO
  • βš™οΈ Bundler Analyzer
  • 🌈 Include a FREE minimalist theme
  • πŸ’― Maximize lighthouse score
  • πŸ”₯ SWC instead of babel
  • πŸŽ‰ redux, redux-saga and next-redux-wrapper
  • 🌈 react-lazy-loader-component and html-react-parser
  • πŸŽ‰ next-useragent and classnames
  • 🦊 react-hook-form and yup
  • 🎨 PlopJS and Axios
  • πŸŽ‰ Env and Docker
.
β”œβ”€β”€ README.md                # README file
β”œβ”€β”€ next.config.js           # Next JS configuration
β”œβ”€β”€ components               # Components folder
β”œβ”€β”€ @types                   # TypeScript models
β”œβ”€β”€ public                   # Public folder
β”‚   └── assets
β”‚       └── images           # Image used by default template
β”œβ”€β”€
β”‚   β”œβ”€β”€ features             # Features folder
β”‚   β”œβ”€β”€ routers              # Routers folder
β”‚   β”œβ”€β”€ generators           # Generators folder
β”‚   β”œβ”€β”€ pages                # Next JS pages
β”‚   β”œβ”€β”€ styles               # PostCSS style folder with Tailwind
β”‚   β”œβ”€β”€ store                # Store file redux and redux-saga
β”‚   └── libs                 # Libs folder
β”œβ”€β”€ tailwind.config.js       # Tailwind CSS configuration
└── tsconfig.json            # TypeScript configuration

πŸ‘¨β€πŸ’» Getting Started

Prerequisites

nvm
brew install nvm
Node.js v18
nvm install v18.12.0
Pnpm
npm install -g pnpm
Docker
Docker Desktop Download

βœ… Installation

Requires Node >=14.x

Install NPM packages:

pnpm install

πŸ—‚ Development

To start the application in the development mode run:

pnpm dev

πŸ—‚ Build

To build the application for production, run:

pnpm build

πŸ—‚ Lint

To lint the application run:

pnpm lint

πŸ—‚ Docker

To docker the application build:

pnpm docker:prod:build

To docker the application start:

pnpm docker:prod:start

To docker the application stop:

pnpm docker:prod:stop

πŸŽ‰ Using Plop JS

pnpm generate

After this, select if you want to create a page or component and set the name.

You can change the templates and settings of generator at path generators on project root.

πŸ“„ License

🍁 MIT Licensed | Copyright © 2022-present Abdulnasır Olcan and @Next13Boilerplate contributors

Back To The Top

About

Boilerplate to help developers to have a fast project configuration using the most recent next version and some tools to improve the developer experience.

https://nextjs13-boilerplate.vercel.app

License:MIT License


Languages

Language:TypeScript 51.7%Language:JavaScript 21.3%Language:SCSS 12.0%Language:Handlebars 11.1%Language:Makefile 3.6%Language:Shell 0.3%