├── .eslintrc.json ├── .gitignore ├── README.md ├── next.config.mjs ├── package.json ├── postcss.config.mjs ├── prisma └── schema.prisma ├── public ├── next.svg └── vercel.svg ├── src ├── actions │ └── actions.ts ├── app │ ├── api │ │ └── auth │ │ │ └── [kindeAuth] │ │ │ └── route.js │ ├── create-post │ │ └── page.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ ├── page.tsx │ └── posts │ │ ├── [id] │ │ ├── not-found.tsx │ │ └── page.tsx │ │ └── page.tsx ├── components │ ├── container.tsx │ ├── footer.tsx │ ├── form.tsx │ ├── header.tsx │ └── posts-list.tsx ├── lib │ └── db.ts └── middleware.ts ├── tailwind.config.ts └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/README.md -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/postcss.config.mjs -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/actions/actions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/src/actions/actions.ts -------------------------------------------------------------------------------- /src/app/api/auth/[kindeAuth]/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/src/app/api/auth/[kindeAuth]/route.js -------------------------------------------------------------------------------- /src/app/create-post/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/src/app/create-post/page.tsx -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/app/posts/[id]/not-found.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/src/app/posts/[id]/not-found.tsx -------------------------------------------------------------------------------- /src/app/posts/[id]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/src/app/posts/[id]/page.tsx -------------------------------------------------------------------------------- /src/app/posts/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/src/app/posts/page.tsx -------------------------------------------------------------------------------- /src/components/container.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/src/components/container.tsx -------------------------------------------------------------------------------- /src/components/footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/src/components/footer.tsx -------------------------------------------------------------------------------- /src/components/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/src/components/form.tsx -------------------------------------------------------------------------------- /src/components/header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/src/components/header.tsx -------------------------------------------------------------------------------- /src/components/posts-list.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/src/components/posts-list.tsx -------------------------------------------------------------------------------- /src/lib/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/src/lib/db.ts -------------------------------------------------------------------------------- /src/middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/src/middleware.ts -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ByteGrad/nextjs-first-project-final/HEAD/tsconfig.json --------------------------------------------------------------------------------