{"id":22245825,"url":"https://github.com/mmvergara/nextjs-mongodb-prisma-auth-template","last_synced_at":"2025-07-28T02:33:13.991Z","repository":{"id":237702176,"uuid":"795082824","full_name":"mmvergara/nextjs-mongodb-prisma-auth-template","owner":"mmvergara","description":"Template repository for building a Next.js application with MongoDB, Prisma, and Next Auth authentication. 🚀","archived":false,"fork":false,"pushed_at":"2024-12-02T12:37:46.000Z","size":276,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-02T13:39:46.873Z","etag":null,"topics":["authentication","mongodb","nextjs","prisma","template"],"latest_commit_sha":null,"homepage":"https://nextjs-mongodb-prisma-auth-template.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mmvergara.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.MD","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-02T14:50:27.000Z","updated_at":"2024-12-02T12:37:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"6aeccf8d-b3ba-4a1c-a227-30bcb29fb9bd","html_url":"https://github.com/mmvergara/nextjs-mongodb-prisma-auth-template","commit_stats":null,"previous_names":["mmvergara/nextjs-mongodb-prisma-auth-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmvergara%2Fnextjs-mongodb-prisma-auth-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmvergara%2Fnextjs-mongodb-prisma-auth-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmvergara%2Fnextjs-mongodb-prisma-auth-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmvergara%2Fnextjs-mongodb-prisma-auth-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmvergara","download_url":"https://codeload.github.com/mmvergara/nextjs-mongodb-prisma-auth-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227857882,"owners_count":17830286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","mongodb","nextjs","prisma","template"],"created_at":"2024-12-03T05:18:55.513Z","updated_at":"2025-07-28T02:33:13.980Z","avatar_url":"https://github.com/mmvergara.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js MongoDB Prisma Auth Template\n\n[**`🌐 App Demo`**](https://nextjs-mongodb-prisma-auth-template.vercel.app/)\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"remove_mee.png\" width=\"450\"\u003e\n\u003c/p\u003e\n\nThis is a template repository for building a Next.js application with MongoDB, Prisma, and Next Auth **V5**.\n\n## Features\n\n- 🚀 Next Auth **V5** with user registration, login, and logout functionality\n- 🚀 Protected Routes\n- 🚀 Next.js framework for server-side rendering and client-side rendering\n- 🚀 MongoDB for database storage\n- 🚀 Prisma for database ORM\n\n## Getting Started\n\n1. Clone the repository\n2. Install dependencies: `npm install`\n3. Set up your environment variables by creating a `.env` `or` `.env.local` file based on the `.env.example` file.\n4. Generate and DB Push Prisma Client\n```bash\nnpx prisma generate\nnpx prisma db push\n```\n5. Start the development server: `npm run dev`\n\n## What you need to know\n\n- `auth.config.ts` `\u0026\u0026` `app/lib/actions.ts` handles auth logic\n- `/lib/form-schemas.ts` zod for form validation\n- `middleware.ts` handles protected routes\n\n\n## More Starter Templates\n\n- [React Supabase Auth Template 🌟](https://github.com/mmvergara/react-supabase-auth-template)\n- [React Supabase ShadCN Auth Template](https://github.com/mmvergara/react-supabase-shadcn-auth-template)\n- [NextJs MongoDB Prisma Auth Template 🌟](https://github.com/mmvergara/nextjs-mongodb-prisma-auth-template)\n- [NextJs Discord Bot Template 🌟](https://github.com/mmvergara/nextjs-discord-bot-boilerplate)\n- [React Firebase🔥 Auth Template 🌟](https://github.com/mmvergara/react-firebase-auth-template)\n- [Golang Postgres Auth Template](https://github.com/mmvergara/golang-postgresql-auth-template)\n- [Vue Supabase Auth Template](https://github.com/mmvergara/vue-supabase-auth-starter-template)\n- [Remix Drizzle Auth Template](https://github.com/mmvergara/remix-drizzle-auth-template)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmvergara%2Fnextjs-mongodb-prisma-auth-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmvergara%2Fnextjs-mongodb-prisma-auth-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmvergara%2Fnextjs-mongodb-prisma-auth-template/lists"}