Introducing a simple Next.js with Typescript and Tailwind CSS starter template. This custom-made template has been carefully designed to simplify complex configurations and time-consuming setups, allowing developers (me; especially) to focus on my work effortlessly.
If you find this amazing creation valuable, you're invited to use it for your own projects. I warmly welcome any helpful feedback or suggestions you may have. You can easily make your own version by copying or downloading this code repository and contribute your own fantastic ideas by submitting a Pull Request.
This repository is packed with:
- π Next.js 13.4
- βοΈ React 18
- π° TypeScript
- π Tailwind CSS 3
- π’ Jest β Configured for unit testing
- π§Ώ Absolute Import and Path Alias β Import components using
@/
prefix - π ESLint β Find and fix problems in the code, also will auto sort the imports
- β¨ Prettier β Format your code consistently
- πΆ Husky & Lint Staged β Run scripts on your staged files before committed
- π Conventional Commit Lint β Make sure to follow conventional commit
- β»οΈ Snippets β A collection of most useful snippets
- π Dark Mode & Light Mode - Switch theme just one click
-
Use this repository as template
-
Using
create-next-app
npx create-next-app -e https://github.com/aulianza/next-tailwind-starter project-name
-
Using
degit
npx degit aulianza/next-tailwind-starter YOUR_APP_NAME
-
Deploy to Vercel or Netlify, etc
It is encouraged to use yarn so the husky hooks can work properly.
yarn install
You can start the server using this command:
yarn dev
Open http://localhost:3000 with your browser to see the result. You can start editing the page by modifying src/pages/index.tsx
.
There are some things you need to change including title, urls, favicons, etc. Don't forget to change the package name in package.json
This starter is using conventional commits, it is mandatory to use it to commit changes.
Licensed under the MIT license.