π Boilerplate and Starter for newest Next.js, TailwindCSS and TypeScript β‘οΈ Made with developer who has experience with Next.js, TypeScript, ESLint, Prettier, Husky, VSCode, PostCSS, TailwindCSS.
You can check the demo here.
- Next.js for Static Site Generator
- Integrate with Tailwind CSS (JIT mode)
- Type checking TypeScript
- Strict Mode for TypeScript and latest React
- Linter with ESLint (default NextJS, NextJS Core Web Vitals and Google configuration)
- Code Formatter with Prettier
- Husky for Git Hooks
- VSCode configuration: Settings and extension for PostCSS, ESLint, Prettier, TypeScript
- SEO metadata, JSON-LD and Open Graph tags with Next SEO
- Bundler Analyzer
- Maximize lighthouse score
- Github Action Test for Jest and Cypress
- Commiziten Support
- Progressive Web App Suport
Run the following command on your local environment:
git clone --depth=1 git@github.com:andriyfm/next-boilerplate.git my-project-name
cd my-project-name
npm installThen, you can run locally in development mode with live reload:
npm run devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.
API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.
The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.
.
βββ README.md # README file
βββ .husky # Husky folder
βββ .vscode # VSCode folder
βββ public # Public folder
β βββ assets
βββ src
β βββ components # Atomic layout components
β βββ configs # Configs folder
β βββ contexts # Contexts folder
β βββ data # Data folder
β βββ hooks # Custom hooks folder
β βββ layouts # Layout components folder
β βββ pages # pages folder
β βββ styles # PostCSS style folder with Tailwind
β βββ utils # Utility folder
βββ .eslintrc.js # Eslint configuration
βββ .prettierrc # Prettier configuration
βββ next.config.js # Next JS configuration
βββ postcss.config.js # PostCSS configuration
βββ tailwind.config.js # Tailwind CSS configuration
βββ tsconfig.json # TypeScript configurationTo learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.