{"id":27309185,"url":"https://github.com/mickasmt/next-auth-roles-template","last_synced_at":"2025-04-12T05:23:33.903Z","repository":{"id":247240299,"uuid":"824498673","full_name":"mickasmt/next-auth-roles-template","owner":"mickasmt","description":"Open-source Nextjs 14 Template Starter with Auth.js v5, User Roles \u0026 Admin Panel. Remove blog or docs parts with one cli.","archived":false,"fork":false,"pushed_at":"2024-07-22T20:21:26.000Z","size":3626,"stargazers_count":120,"open_issues_count":0,"forks_count":12,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-07-23T13:38:49.551Z","etag":null,"topics":["admin-dashboard","authjs","neondb","nextjs14","prisma","react","react-email","resend","shadcn-ui","userroles"],"latest_commit_sha":null,"homepage":"https://next-auth-roles-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/mickasmt.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-07-05T09:05:03.000Z","updated_at":"2024-07-23T06:10:35.000Z","dependencies_parsed_at":"2024-07-07T15:47:03.478Z","dependency_job_id":"104b6f26-1210-4c79-b9bc-183cef8552fa","html_url":"https://github.com/mickasmt/next-auth-roles-template","commit_stats":null,"previous_names":["mickasmt/next-auth-roles-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mickasmt%2Fnext-auth-roles-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mickasmt%2Fnext-auth-roles-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mickasmt%2Fnext-auth-roles-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mickasmt%2Fnext-auth-roles-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mickasmt","download_url":"https://codeload.github.com/mickasmt/next-auth-roles-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248520762,"owners_count":21117924,"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":["admin-dashboard","authjs","neondb","nextjs14","prisma","react","react-email","resend","shadcn-ui","userroles"],"created_at":"2025-04-12T05:23:33.427Z","updated_at":"2025-04-12T05:23:33.889Z","avatar_url":"https://github.com/mickasmt.png","language":"TypeScript","funding_links":[],"categories":["Boilerplates \u0026 Starters"],"sub_categories":[],"readme":"\u003ca href=\"https://next-auth-roles-template.vercel.app\"\u003e\n  \u003cimg alt=\"Next Template\" src=\"public/_static/og.jpg\"\u003e\n  \u003ch1 align=\"center\"\u003eNext Auth Roles Template\u003c/h1\u003e\n\u003c/a\u003e\n\n\u003cp align=\"center\"\u003e\n  Start at full speed with this Next.js Template !\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://twitter.com/miickasmt\"\u003e\n    \u003cimg src=\"https://img.shields.io/twitter/follow/miickasmt?style=flat\u0026label=miickasmt\u0026logo=twitter\u0026color=0bf\u0026logoColor=fff\" alt=\"Mickasmt Twitter follower count\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#installation\"\u003e\u003cstrong\u003eInstallation\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#tech-stack--features\"\u003e\u003cstrong\u003eTech Stack + Features\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#author\"\u003e\u003cstrong\u003eAuthor\u003c/strong\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\n## Installation\n\nClone \u0026 create this repo locally with the following command:\n\n```bash\nnpx create-next-app my-saas-project --example \"https://github.com/mickasmt/next-auth-roles-template\"\n```\n\nOr, deploy with Vercel:\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fmickasmt%2Fnext-auth-roles-template)\n\n### Steps\n\n1. Install dependencies using pnpm:\n\n```sh\npnpm install\n```\n\n2. Copy `.env.example` to `.env.local` and update the variables.\n\n```sh\ncp .env.example .env.local\n```\n\n3. Start the development server:\n\n```sh\npnpm run dev\n```\n\n4. Remove parts you don't want\n\nYou can use the command `pnpm run remove-content` in your terminal to remove specific parts of your project. This command supports the following parameters:\n\n- **--blog**: Removes the blog section from your project.\n- **--docs**: Removes the documentation section from your project.\n\n#### Recommendations\n\n- **Remove Both Sections**: It is recommended to use `pnpm run remove-content` without specifying parameters (`--blog` or `--docs`). This ensures that all associated documents are properly removed, as some documents may not be deleted/updated if you remove \"blog\" after \"docs\" or vice versa.\n\n#### Examples\n\n1. To remove both the blog and documentation sections:\n\n```bash\npnpm run remove-content\n```\n\n2. To remove only the blog section:\n\n```bash\npnpm run remove-content --blog\n```\n\n3. To remove only the documentation section:\n\n```bash\npnpm run remove-content --docs\n```\n\n\u003e [!NOTE]  \n\u003e I use [npm-check-updates](https://www.npmjs.com/package/npm-check-updates) package for update this project.\n\u003e\n\u003e Use this command for update your project: `ncu -i --format group`\n\n## Tech Stack + Features\n\n\u003cimg alt=\"Next Auth Roles Template\" src=\"public/_static/images/x-preview.jpg\"\u003e\n\n### Frameworks\n\n- [Next.js](https://nextjs.org/) – React framework for building performant apps with the best developer experience\n- [Auth.js](https://authjs.dev/) – Handle user authentication with ease with providers like Google, Twitter, GitHub, etc.\n- [Prisma](https://www.prisma.io/) – Typescript-first ORM for Node.js\n- [React Email](https://react.email/) – Versatile email framework for efficient and flexible email development\n\n### Platforms\n\n- [Vercel](https://vercel.com/) – Easily preview \u0026 deploy changes with git\n- [Resend](https://resend.com/) – A powerful email framework for streamlined email development\n- [Neon](https://neon.tech/) – Serverless Postgres with autoscaling, branching, bottomless storage and generous free tier.\n\n### UI\n\n- [Tailwind CSS](https://tailwindcss.com/) – Utility-first CSS framework for rapid UI development\n- [Shadcn/ui](https://ui.shadcn.com/) – Re-usable components built using Radix UI and Tailwind CSS\n- [Lucide](https://lucide.dev/) – Beautifully simple, pixel-perfect icons\n- [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) – Optimize custom fonts and remove external network requests for improved performance\n- [`ImageResponse`](https://nextjs.org/docs/app/api-reference/functions/image-response) – Generate dynamic Open Graph images at the edge\n\n### Hooks and Utilities\n\n- `useIntersectionObserver` – React hook to observe when an element enters or leaves the viewport\n- `useLocalStorage` – Persist data in the browser's local storage\n- `useScroll` – React hook to observe scroll position ([example](https://github.com/mickasmt/precedent/blob/main/components/layout/navbar.tsx#L12))\n- `nFormatter` – Format numbers with suffixes like `1.2k` or `1.2M`\n- `capitalize` – Capitalize the first letter of a string\n- `truncate` – Truncate a string to a specified length\n- [`use-debounce`](https://www.npmjs.com/package/use-debounce) – Debounce a function call / state update\n\n### Code Quality\n\n- [TypeScript](https://www.typescriptlang.org/) – Static type checker for end-to-end typesafety\n- [Prettier](https://prettier.io/) – Opinionated code formatter for consistent code style\n- [ESLint](https://eslint.org/) – Pluggable linter for Next.js and TypeScript\n\n### Miscellaneous\n\n- [Vercel Analytics](https://vercel.com/analytics) – Track unique visitors, pageviews, and more in a privacy-friendly way\n\n## Author\n\nThis project is based on [Next SaaS Stripe Starter](https://next-saas-stripe-starter.vercel.app/).\n\nCreated by [@miickasmt](https://twitter.com/miickasmt) in 2023, released under the [MIT license](https://github.com/shadcn/taxonomy/blob/main/LICENSE.md).\n\n## Credits\n\nThanks to [Hosna Qasmei](https://twitter.com/hqasmei) for part of the dashboard sidebar code.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmickasmt%2Fnext-auth-roles-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmickasmt%2Fnext-auth-roles-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmickasmt%2Fnext-auth-roles-template/lists"}