This is a NextJS 12 starter template based off nextjs-ts-tailwind for real-world app development, including:
- Typescript
- TailwindCSS
- Tanstack-Query with hydration support & helpers +
superjson, as well as its devtools enabled in development. next-better-apiwith API schema validation powered by Zod- Google Font (Roboto) embed under a custom
_document.tsxfile, and matchingtailwind.config.js - Custom
prettierandeslintconfigurationprettier-plugin-tailwindcssfor automatic Tailwind class sorting- Import order rules
- Enforce use of
typemodifier in imports when appropriate - Avoid
console.logstatements - Avoid dangling Promises
- Prefer arrow functions with implicit returns when appropriate
- ...and a bunch of other rules
- Path aliases configured under
tsconfig.json(@components/,@lib/,@api/)
$ npx create-next-app -e https://github.com/filp/nextjs-app-starter$ npx degit https://github.com/filp/nextjs-app-starter <your-app-name>See license information under LICENSE.md.
Contributions are super welcome - in the form of bug reports, suggestions, or better yet, pull requests!
