├── .env ├── .gitignore ├── .prettierrc ├── README.md ├── components ├── Header.tsx ├── Layout.tsx ├── Post.tsx └── auth │ └── form-passwordless.tsx ├── installation.md ├── lib ├── logger.ts └── prisma.ts ├── next-env.d.ts ├── package.json ├── pages ├── _app.tsx ├── api │ ├── auth │ │ └── [...nextauth].ts │ ├── post │ │ ├── [id].ts │ │ └── index.ts │ ├── publish │ │ └── [id].ts │ └── user │ │ ├── [id].ts │ │ ├── check-credentials.ts │ │ └── create.ts ├── auth │ ├── signin.tsx │ ├── signout.tsx │ └── signup.tsx ├── create.tsx ├── drafts.tsx ├── index.tsx └── p │ └── [id].tsx ├── prisma ├── migrations │ ├── 20211210160636_initial_migration │ │ └── migration.sql │ └── migration_lock.toml ├── schema.prisma └── seed.ts ├── theme ├── colors.ts ├── components.ts └── index.ts ├── tsconfig.json ├── yarn-error.log └── yarn.lock /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/.env -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/README.md -------------------------------------------------------------------------------- /components/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/components/Header.tsx -------------------------------------------------------------------------------- /components/Layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/components/Layout.tsx -------------------------------------------------------------------------------- /components/Post.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/components/Post.tsx -------------------------------------------------------------------------------- /components/auth/form-passwordless.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/components/auth/form-passwordless.tsx -------------------------------------------------------------------------------- /installation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/installation.md -------------------------------------------------------------------------------- /lib/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/lib/logger.ts -------------------------------------------------------------------------------- /lib/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/lib/prisma.ts -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/package.json -------------------------------------------------------------------------------- /pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/pages/_app.tsx -------------------------------------------------------------------------------- /pages/api/auth/[...nextauth].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/pages/api/auth/[...nextauth].ts -------------------------------------------------------------------------------- /pages/api/post/[id].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/pages/api/post/[id].ts -------------------------------------------------------------------------------- /pages/api/post/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/pages/api/post/index.ts -------------------------------------------------------------------------------- /pages/api/publish/[id].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/pages/api/publish/[id].ts -------------------------------------------------------------------------------- /pages/api/user/[id].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/pages/api/user/[id].ts -------------------------------------------------------------------------------- /pages/api/user/check-credentials.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/pages/api/user/check-credentials.ts -------------------------------------------------------------------------------- /pages/api/user/create.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/pages/api/user/create.ts -------------------------------------------------------------------------------- /pages/auth/signin.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/pages/auth/signin.tsx -------------------------------------------------------------------------------- /pages/auth/signout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/pages/auth/signout.tsx -------------------------------------------------------------------------------- /pages/auth/signup.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/pages/auth/signup.tsx -------------------------------------------------------------------------------- /pages/create.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/pages/create.tsx -------------------------------------------------------------------------------- /pages/drafts.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/pages/drafts.tsx -------------------------------------------------------------------------------- /pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/pages/index.tsx -------------------------------------------------------------------------------- /pages/p/[id].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/pages/p/[id].tsx -------------------------------------------------------------------------------- /prisma/migrations/20211210160636_initial_migration/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/prisma/migrations/20211210160636_initial_migration/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /prisma/seed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/prisma/seed.ts -------------------------------------------------------------------------------- /theme/colors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/theme/colors.ts -------------------------------------------------------------------------------- /theme/components.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/theme/components.ts -------------------------------------------------------------------------------- /theme/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/theme/index.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn-error.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/yarn-error.log -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikemajara/nextjs-prisma-next-auth-credentials/HEAD/yarn.lock --------------------------------------------------------------------------------