├── .env ├── .eslintrc.json ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── pull_request_template.md ├── .gitignore ├── .husky ├── commit-msg └── pre-commit ├── .lintstagedrc.js ├── .npmrc ├── .prettierignore ├── .prettierrc.json ├── LICENSE ├── README.md ├── docker-compose.yml ├── next.config.js ├── package.json ├── pnpm-lock.yaml ├── postcss.config.js ├── prisma ├── migrations │ ├── 20230812180126_ │ │ └── migration.sql │ ├── 20230812182754_add_role_column │ │ └── migration.sql │ ├── 20230814113016_create_post_table │ │ └── migration.sql │ ├── 20230815180839_change_naming_of_the_publish_column_to_is_published │ │ └── migration.sql │ └── migration_lock.toml ├── schema.prisma └── seed.ts ├── public ├── next.svg └── vercel.svg ├── src ├── app │ ├── api-doc │ │ ├── page.tsx │ │ └── react-swagger.tsx │ ├── api │ │ ├── auth │ │ │ └── [...nextauth] │ │ │ │ └── route.ts │ │ ├── posts │ │ │ ├── [id] │ │ │ │ └── route.ts │ │ │ └── route.ts │ │ └── register │ │ │ └── route.ts │ ├── auth │ │ ├── sign-in │ │ │ └── page.tsx │ │ └── sign-up │ │ │ └── page.tsx │ ├── dashboard │ │ └── page.tsx │ ├── error.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ ├── page.tsx │ └── unauthorized │ │ └── page.tsx ├── components │ ├── authentication │ │ └── sign-out-button.tsx │ ├── general │ │ ├── button.tsx │ │ ├── icon │ │ │ ├── icon.tsx │ │ │ └── icons │ │ │ │ ├── bars-icon.tsx │ │ │ │ ├── github-icon.tsx │ │ │ │ ├── index.ts │ │ │ │ ├── moon-filled-icon.tsx │ │ │ │ ├── search-icon.tsx │ │ │ │ ├── sun-filled-icon.tsx │ │ │ │ ├── user-icon.tsx │ │ │ │ └── x-icon.tsx │ │ └── theme-switch.tsx │ ├── layout │ │ ├── footer.tsx │ │ └── navbar │ │ │ ├── index.tsx │ │ │ └── nav-auth-menu.tsx │ └── posts │ │ └── list-posts.tsx ├── config │ ├── routes.ts │ └── site.tsx ├── context │ └── providers.tsx ├── hooks │ └── use-breakpoint.tsx ├── lib │ ├── prisma.ts │ └── swagger.ts ├── middleware.ts ├── types │ ├── index.ts │ └── next-auth.d.ts └── utils │ ├── auth-options.ts │ ├── auth.ts │ └── env.ts ├── tailwind.config.ts └── tsconfig.json /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/.env -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [damla] 4 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/.husky/commit-msg -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | pnpm lint-staged -------------------------------------------------------------------------------- /.lintstagedrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/.lintstagedrc.js -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | public-hoist-pattern[]=*@nextui-org/* -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/postcss.config.js -------------------------------------------------------------------------------- /prisma/migrations/20230812180126_/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/prisma/migrations/20230812180126_/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20230812182754_add_role_column/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/prisma/migrations/20230812182754_add_role_column/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20230814113016_create_post_table/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/prisma/migrations/20230814113016_create_post_table/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20230815180839_change_naming_of_the_publish_column_to_is_published/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/prisma/migrations/20230815180839_change_naming_of_the_publish_column_to_is_published/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /prisma/seed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/prisma/seed.ts -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/app/api-doc/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/app/api-doc/page.tsx -------------------------------------------------------------------------------- /src/app/api-doc/react-swagger.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/app/api-doc/react-swagger.tsx -------------------------------------------------------------------------------- /src/app/api/auth/[...nextauth]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/app/api/auth/[...nextauth]/route.ts -------------------------------------------------------------------------------- /src/app/api/posts/[id]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/app/api/posts/[id]/route.ts -------------------------------------------------------------------------------- /src/app/api/posts/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/app/api/posts/route.ts -------------------------------------------------------------------------------- /src/app/api/register/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/app/api/register/route.ts -------------------------------------------------------------------------------- /src/app/auth/sign-in/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/app/auth/sign-in/page.tsx -------------------------------------------------------------------------------- /src/app/auth/sign-up/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/app/auth/sign-up/page.tsx -------------------------------------------------------------------------------- /src/app/dashboard/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/app/dashboard/page.tsx -------------------------------------------------------------------------------- /src/app/error.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/app/error.tsx -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/app/unauthorized/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/app/unauthorized/page.tsx -------------------------------------------------------------------------------- /src/components/authentication/sign-out-button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/components/authentication/sign-out-button.tsx -------------------------------------------------------------------------------- /src/components/general/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/components/general/button.tsx -------------------------------------------------------------------------------- /src/components/general/icon/icon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/components/general/icon/icon.tsx -------------------------------------------------------------------------------- /src/components/general/icon/icons/bars-icon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/components/general/icon/icons/bars-icon.tsx -------------------------------------------------------------------------------- /src/components/general/icon/icons/github-icon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/components/general/icon/icons/github-icon.tsx -------------------------------------------------------------------------------- /src/components/general/icon/icons/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/components/general/icon/icons/index.ts -------------------------------------------------------------------------------- /src/components/general/icon/icons/moon-filled-icon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/components/general/icon/icons/moon-filled-icon.tsx -------------------------------------------------------------------------------- /src/components/general/icon/icons/search-icon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/components/general/icon/icons/search-icon.tsx -------------------------------------------------------------------------------- /src/components/general/icon/icons/sun-filled-icon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/components/general/icon/icons/sun-filled-icon.tsx -------------------------------------------------------------------------------- /src/components/general/icon/icons/user-icon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/components/general/icon/icons/user-icon.tsx -------------------------------------------------------------------------------- /src/components/general/icon/icons/x-icon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/components/general/icon/icons/x-icon.tsx -------------------------------------------------------------------------------- /src/components/general/theme-switch.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/components/general/theme-switch.tsx -------------------------------------------------------------------------------- /src/components/layout/footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/components/layout/footer.tsx -------------------------------------------------------------------------------- /src/components/layout/navbar/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/components/layout/navbar/index.tsx -------------------------------------------------------------------------------- /src/components/layout/navbar/nav-auth-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/components/layout/navbar/nav-auth-menu.tsx -------------------------------------------------------------------------------- /src/components/posts/list-posts.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/components/posts/list-posts.tsx -------------------------------------------------------------------------------- /src/config/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/config/routes.ts -------------------------------------------------------------------------------- /src/config/site.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/config/site.tsx -------------------------------------------------------------------------------- /src/context/providers.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/context/providers.tsx -------------------------------------------------------------------------------- /src/hooks/use-breakpoint.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/hooks/use-breakpoint.tsx -------------------------------------------------------------------------------- /src/lib/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/lib/prisma.ts -------------------------------------------------------------------------------- /src/lib/swagger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/lib/swagger.ts -------------------------------------------------------------------------------- /src/middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/middleware.ts -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/types/index.ts -------------------------------------------------------------------------------- /src/types/next-auth.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/types/next-auth.d.ts -------------------------------------------------------------------------------- /src/utils/auth-options.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/utils/auth-options.ts -------------------------------------------------------------------------------- /src/utils/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/utils/auth.ts -------------------------------------------------------------------------------- /src/utils/env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/src/utils/env.ts -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/damla/nextjs-w-app-router-starter/HEAD/tsconfig.json --------------------------------------------------------------------------------