├── .eslintrc.json ├── .gitattributes ├── .gitignore ├── README.md ├── components ├── Logout.js ├── NavBar.js └── SessionProvider.js ├── dummy-data.js ├── dummy-data.json ├── jsconfig.json ├── next.config.js ├── package.json ├── public ├── images │ ├── coding-event.jpg │ ├── extrovert-event.jpg │ └── introvert-event.jpg ├── next.svg └── vercel.svg ├── src └── app │ ├── EventList.module.css │ ├── api │ ├── auth │ │ └── [...nextauth] │ │ │ └── route.js │ ├── products │ │ ├── delete │ │ │ └── route.js │ │ ├── post │ │ │ └── route.js │ │ └── route.js │ └── users │ │ └── signup │ │ └── route.js │ ├── error.js │ ├── favicon.ico │ ├── globals.css │ ├── layout.js │ ├── middlewares │ └── middleware.js │ ├── page.js │ ├── page.module.css │ ├── post │ ├── [...id] │ │ └── page.js │ ├── [id] │ │ ├── page.js │ │ └── page.module.css │ └── create │ │ ├── page.js │ │ └── page.module.css │ ├── signin │ └── page.js │ └── signup │ └── page.js └── utlis ├── connectMongo.js └── model ├── product.js └── user.js /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/README.md -------------------------------------------------------------------------------- /components/Logout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/components/Logout.js -------------------------------------------------------------------------------- /components/NavBar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/components/NavBar.js -------------------------------------------------------------------------------- /components/SessionProvider.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/components/SessionProvider.js -------------------------------------------------------------------------------- /dummy-data.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/dummy-data.js -------------------------------------------------------------------------------- /dummy-data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/dummy-data.json -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/jsconfig.json -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/package.json -------------------------------------------------------------------------------- /public/images/coding-event.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/public/images/coding-event.jpg -------------------------------------------------------------------------------- /public/images/extrovert-event.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/public/images/extrovert-event.jpg -------------------------------------------------------------------------------- /public/images/introvert-event.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/public/images/introvert-event.jpg -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/app/EventList.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/EventList.module.css -------------------------------------------------------------------------------- /src/app/api/auth/[...nextauth]/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/api/auth/[...nextauth]/route.js -------------------------------------------------------------------------------- /src/app/api/products/delete/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/api/products/delete/route.js -------------------------------------------------------------------------------- /src/app/api/products/post/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/api/products/post/route.js -------------------------------------------------------------------------------- /src/app/api/products/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/api/products/route.js -------------------------------------------------------------------------------- /src/app/api/users/signup/route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/api/users/signup/route.js -------------------------------------------------------------------------------- /src/app/error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/error.js -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/layout.js -------------------------------------------------------------------------------- /src/app/middlewares/middleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/middlewares/middleware.js -------------------------------------------------------------------------------- /src/app/page.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/page.js -------------------------------------------------------------------------------- /src/app/page.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/page.module.css -------------------------------------------------------------------------------- /src/app/post/[...id]/page.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/post/[...id]/page.js -------------------------------------------------------------------------------- /src/app/post/[id]/page.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/post/[id]/page.js -------------------------------------------------------------------------------- /src/app/post/[id]/page.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/post/[id]/page.module.css -------------------------------------------------------------------------------- /src/app/post/create/page.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/post/create/page.js -------------------------------------------------------------------------------- /src/app/post/create/page.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/post/create/page.module.css -------------------------------------------------------------------------------- /src/app/signin/page.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/signin/page.js -------------------------------------------------------------------------------- /src/app/signup/page.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/src/app/signup/page.js -------------------------------------------------------------------------------- /utlis/connectMongo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/utlis/connectMongo.js -------------------------------------------------------------------------------- /utlis/model/product.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/utlis/model/product.js -------------------------------------------------------------------------------- /utlis/model/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huzaifac137/Next.js-app-router-with-next-auth/HEAD/utlis/model/user.js --------------------------------------------------------------------------------