├── .dockerignore ├── .env.example ├── .gitignore ├── .husky ├── commit-msg ├── pre-commit └── pre-push ├── .prettierrc ├── .vscode ├── extensions.json └── settings.json ├── Dockerfile ├── LICENSE ├── README.md ├── commitlint.config.js ├── docker-compose.yml ├── eslint.config.mjs ├── next-env.d.ts ├── next.config.ts ├── package.json ├── postcss.config.mjs ├── prisma ├── schema.prisma └── seed.ts ├── public ├── images │ └── og.png ├── next.svg └── vercel.svg ├── src ├── app │ ├── api │ │ ├── posts │ │ │ └── route.ts │ │ └── webhooks │ │ │ └── clerk │ │ │ └── route.ts │ ├── dashboard │ │ └── page.tsx │ ├── error.tsx │ ├── layout.tsx │ ├── loading.tsx │ ├── not-found.tsx │ ├── page.tsx │ ├── posts │ │ └── page.tsx │ ├── sign-in │ │ └── [[...sign-in]] │ │ │ └── page.tsx │ └── sign-up │ │ └── [[...sign-up]] │ │ └── page.tsx ├── components │ ├── Footer │ │ └── index.tsx │ ├── Header │ │ ├── Heading.tsx │ │ └── index.tsx │ ├── Navbar.tsx │ ├── PostCard.tsx │ ├── PreloadFonts │ │ ├── PreloadFonts.tsx │ │ └── index.ts │ ├── ThemeToggle.tsx │ ├── index.ts │ ├── inputs │ │ └── index.tsx │ └── ui │ │ ├── badge.tsx │ │ ├── button.tsx │ │ ├── input.tsx │ │ └── skeleton.tsx ├── config │ └── index.ts ├── context │ └── index.ts ├── env │ ├── config.ts │ └── index.ts ├── hooks │ ├── index.ts │ ├── useAPiCall.ts │ ├── useLocalStorage.tsx │ ├── useMediaQuery.tsx │ └── usePosts.ts ├── layouts │ └── ErrorLayout │ │ └── ErrorLayout.tsx ├── lib │ ├── date.ts │ ├── fetcher.ts │ ├── index.ts │ ├── logger.ts │ ├── prisma.ts │ └── utils.ts ├── providers │ ├── ToasterProvider.tsx │ ├── query.tsx │ └── theme.tsx ├── proxy.tsx ├── services │ └── postService.ts ├── styles │ ├── fonts.css │ └── globals.css └── types │ └── index.ts └── tsconfig.json /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/.dockerignore -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/.husky/commit-msg -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /.husky/pre-push: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/.husky/pre-push -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/README.md -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/commitlint.config.js -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/eslint.config.mjs -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/next.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/postcss.config.mjs -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /prisma/seed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/prisma/seed.ts -------------------------------------------------------------------------------- /public/images/og.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/public/images/og.png -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/app/api/posts/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/app/api/posts/route.ts -------------------------------------------------------------------------------- /src/app/api/webhooks/clerk/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/app/api/webhooks/clerk/route.ts -------------------------------------------------------------------------------- /src/app/dashboard/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/app/dashboard/page.tsx -------------------------------------------------------------------------------- /src/app/error.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/app/error.tsx -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/loading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/app/loading.tsx -------------------------------------------------------------------------------- /src/app/not-found.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/app/not-found.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/app/posts/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/app/posts/page.tsx -------------------------------------------------------------------------------- /src/app/sign-in/[[...sign-in]]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/app/sign-in/[[...sign-in]]/page.tsx -------------------------------------------------------------------------------- /src/app/sign-up/[[...sign-up]]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/app/sign-up/[[...sign-up]]/page.tsx -------------------------------------------------------------------------------- /src/components/Footer/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/components/Footer/index.tsx -------------------------------------------------------------------------------- /src/components/Header/Heading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/components/Header/Heading.tsx -------------------------------------------------------------------------------- /src/components/Header/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/components/Header/index.tsx -------------------------------------------------------------------------------- /src/components/Navbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/components/Navbar.tsx -------------------------------------------------------------------------------- /src/components/PostCard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/components/PostCard.tsx -------------------------------------------------------------------------------- /src/components/PreloadFonts/PreloadFonts.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/components/PreloadFonts/PreloadFonts.tsx -------------------------------------------------------------------------------- /src/components/PreloadFonts/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/components/PreloadFonts/index.ts -------------------------------------------------------------------------------- /src/components/ThemeToggle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/components/ThemeToggle.tsx -------------------------------------------------------------------------------- /src/components/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/components/index.ts -------------------------------------------------------------------------------- /src/components/inputs/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/components/inputs/index.tsx -------------------------------------------------------------------------------- /src/components/ui/badge.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/components/ui/badge.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/skeleton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/components/ui/skeleton.tsx -------------------------------------------------------------------------------- /src/config/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/config/index.ts -------------------------------------------------------------------------------- /src/context/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/context/index.ts -------------------------------------------------------------------------------- /src/env/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/env/config.ts -------------------------------------------------------------------------------- /src/env/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/env/index.ts -------------------------------------------------------------------------------- /src/hooks/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/hooks/index.ts -------------------------------------------------------------------------------- /src/hooks/useAPiCall.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/hooks/useAPiCall.ts -------------------------------------------------------------------------------- /src/hooks/useLocalStorage.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/hooks/useLocalStorage.tsx -------------------------------------------------------------------------------- /src/hooks/useMediaQuery.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/hooks/useMediaQuery.tsx -------------------------------------------------------------------------------- /src/hooks/usePosts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/hooks/usePosts.ts -------------------------------------------------------------------------------- /src/layouts/ErrorLayout/ErrorLayout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/layouts/ErrorLayout/ErrorLayout.tsx -------------------------------------------------------------------------------- /src/lib/date.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/lib/date.ts -------------------------------------------------------------------------------- /src/lib/fetcher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/lib/fetcher.ts -------------------------------------------------------------------------------- /src/lib/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/lib/index.ts -------------------------------------------------------------------------------- /src/lib/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/lib/logger.ts -------------------------------------------------------------------------------- /src/lib/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/lib/prisma.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/providers/ToasterProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/providers/ToasterProvider.tsx -------------------------------------------------------------------------------- /src/providers/query.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/providers/query.tsx -------------------------------------------------------------------------------- /src/providers/theme.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/providers/theme.tsx -------------------------------------------------------------------------------- /src/proxy.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/proxy.tsx -------------------------------------------------------------------------------- /src/services/postService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/services/postService.ts -------------------------------------------------------------------------------- /src/styles/fonts.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/styles/fonts.css -------------------------------------------------------------------------------- /src/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/styles/globals.css -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/src/types/index.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AnwarHossainSR/nextjs-16-template/HEAD/tsconfig.json --------------------------------------------------------------------------------