Next.js
We are using NextJs which started from this boilerplate. Which includes these features.
- ๐ฅ Next.js for Static Site Generator
- ๐จ Integrate with Tailwind CSS
- ๐ PostCSS for processing Tailwind CSS and integrated to styled-jsx
- ๐ Type checking TypeScript
- โ Strict Mode for TypeScript and React 17
- โ๏ธ Linter with ESLint (default NextJS, NextJS Core Web Vitals, Tailwind CSS and Airbnb configuration)
- ๐ก Absolute Imports
- ๐ 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
- ๐ฑ๏ธ One click deployment with Vercel or Netlify (or manual deployment to any hosting services)
- ๐ Include a FREE minimalist theme
- ๐ฏ Maximize lighthouse score
Requirementsโ
- Node.js 16+ and npm
Folder Structureโ
rentreef # root directory of your site
โโโ ๐ main # next.js & storybook
โ โโโ package.json
โ โโโ next.config.js # next.js config
โ โโโ node_modules
โ โโโ readme.md
โ โโโ TailwindUIExamples
โ โโโ public
โ โโโ .env.local # env variables
โ โโโ .husky
โ โโโ .next
โ โโโ .storybook
โ โโโ .gitignore
โ โโโ ๐ src
โ โโโ ๐ components # atomic design
โ โ โโโ atoms
โ โ โโโ molecules
โ โ โโโ navigation
โ โ โโโ organisms
โ โ โโโ home
โ โโโ interfaces
โ โโโ layout
โ โโโ pages
โ โโโ stories # storybook
โ โโโ styles
โ โโโ templates
โโโ ๐ app-docs # docs