{"id":20481229,"url":"https://github.com/caru-ini/next-authjs-template","last_synced_at":"2025-03-05T15:43:13.836Z","repository":{"id":258517681,"uuid":"868374892","full_name":"caru-ini/next-authjs-template","owner":"caru-ini","description":"Next.js 15 + Auth.js + prisma + shadcn/ui Starter Kit","archived":false,"fork":false,"pushed_at":"2025-03-03T05:08:31.000Z","size":446,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T06:20:25.826Z","etag":null,"topics":["authjs","nextjs","prisma","shadcn-ui","starter-template","starter-template-nextjs"],"latest_commit_sha":null,"homepage":"","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/caru-ini.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-10-06T08:09:53.000Z","updated_at":"2025-03-03T05:08:34.000Z","dependencies_parsed_at":"2025-01-16T04:21:33.748Z","dependency_job_id":null,"html_url":"https://github.com/caru-ini/next-authjs-template","commit_stats":null,"previous_names":["caru-ini/next-authjs-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caru-ini%2Fnext-authjs-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caru-ini%2Fnext-authjs-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caru-ini%2Fnext-authjs-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caru-ini%2Fnext-authjs-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caru-ini","download_url":"https://codeload.github.com/caru-ini/next-authjs-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242058079,"owners_count":20065062,"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":["authjs","nextjs","prisma","shadcn-ui","starter-template","starter-template-nextjs"],"created_at":"2024-11-15T16:07:28.214Z","updated_at":"2025-03-05T15:43:13.808Z","avatar_url":"https://github.com/caru-ini.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js Auth.js Template\n\nThis project is a web application template with authentication features, using Next.js 14 and Auth.js. It incorporates modern web development best practices, enabling rapid development initiation.\n\n## Key Features\n\n- **Next.js 15(App Router)**: Utilizing the latest React framework\n- **ESLint 9**: Latest version of ESLint (flat config)\n- **Auth.js**: Easy implementation of a secure authentication system\n- **Tailwind CSS**: Customizable utility-first CSS framework\n- **shadcn/ui**: Functional UI components\n- **Prisma**: Efficient database operations with a type-safe ORM\n- **PostgreSQL**: Reliable relational database\n- **Docker**: Database containerization for local development\n\n## Setup Instructions\n\n1. Clone the repository\n\n   With create-next-app\n\n   ```bash\n   pnpm create next-app -e https://github.com/caru-ini/next-authjs-template\n   ```\n\n   or using GitHub CLI\n\n   ```bash\n   gh repo create \u003cyour-repo-name\u003e --template https://github.com/caru-ini/next-authjs-template --clone\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   pnpm i\n   ```\n\n3. Generate auth.js secret\n\n   ```bash\n   pnpm dlx auth@latest secret\n   ```\n\n4. Set up environment variables:\n   Create a `.env.local` file and set the necessary environment variables:\n\n   ```env\n   AUTH_SECRET=your_auth_secret # already generated\n\n   DATABASE_URL=\"postgresql://postgres:postgres@localhost:5432/postgres?schema=public\"\n   AUTH_GITHUB_ID=your_github_id\n   AUTH_GITHUB_SECRET=your_github_secret\n   ```\n\n5. Set up the database:\n\n   ```bash\n   docker-compose up -d\n   ```\n\n6. Run Prisma migrations:\n\n   ```bash\n   pnpm prisma:migrate\n   ```\n\n7. Start the development server:\n\n   ```bash\n   pnpm dev\n   ```\n\n## Deployment\n\nRecommend [Vercel](https://vercel.com/) or [Coolify](https://coolify.io/) for deployment.\n\nOn coolify (or other self-hosted deployment platforms), you should set `AUTH_TRUST_HOST=true` in environment variables.\n\n## Technologies Used\n\n- [Next.js](https://nextjs.org/)\n- [Auth.js](https://authjs.dev/)\n- [Prisma](https://www.prisma.io/)\n- [PostgreSQL](https://www.postgresql.org/)\n- [Tailwind CSS](https://tailwindcss.com/)\n- [shadcn/ui](https://ui.shadcn.com/)\n- [Docker](https://www.docker.com/)\n\n## License\n\nThis project is released under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Support\n\nIf you have any questions or need assistance, please open an issue or contact the project maintainer directly.\n\n## Star Us!\n\nIf you find this project useful, we'd greatly appreciate it if you could star our GitHub repository. Your support is a huge encouragement for us to continue improving and maintaining this project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaru-ini%2Fnext-authjs-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaru-ini%2Fnext-authjs-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaru-ini%2Fnext-authjs-template/lists"}