{"id":18698188,"url":"https://github.com/dodycode/nextauth-project-template","last_synced_at":"2025-04-12T07:32:51.293Z","repository":{"id":254059664,"uuid":"845365168","full_name":"dodycode/nextauth-project-template","owner":"dodycode","description":"Next.js application with authentication features using NextAuth.js, Supabase, and Tremor for UI components.","archived":false,"fork":false,"pushed_at":"2024-08-21T05:41:28.000Z","size":181,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-21T06:43:59.584Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dodycode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-21T05:33:25.000Z","updated_at":"2024-08-21T06:44:11.956Z","dependencies_parsed_at":"2024-08-21T06:44:06.796Z","dependency_job_id":"bbd0dff3-0ed3-40f5-a1a7-f8363078304c","html_url":"https://github.com/dodycode/nextauth-project-template","commit_stats":null,"previous_names":["dodycode/nextauth-project-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodycode%2Fnextauth-project-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodycode%2Fnextauth-project-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodycode%2Fnextauth-project-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodycode%2Fnextauth-project-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dodycode","download_url":"https://codeload.github.com/dodycode/nextauth-project-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223504961,"owners_count":17156437,"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":[],"created_at":"2024-11-07T11:27:21.472Z","updated_at":"2024-11-07T11:27:22.141Z","avatar_url":"https://github.com/dodycode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js Authentication Project Template\n\n![alt text](image.png)\nThis project is a Next.js application with authentication features using NextAuth.js, Supabase, and Tremor for UI components.\n\n## Features\n\n- Next.js 14 with App Router\n- Authentication with NextAuth.js\n- Email Magic Link Sign In\n- GitHub OAuth Sign In\n- Google OAuth Sign In\n- Supabase as database adapter\n- Tremor UI components\n- TypeScript\n- Tailwind CSS for styling\n\n## Prerequisites\n\nBefore you begin, ensure you have met the following requirements:\n\n- Node.js (v14 or later)\n- npm or yarn\n- A Supabase account and project\n- GitHub OAuth application (for GitHub sign-in)\n- Google OAuth application (for Google sign-in)\n- SMTP server for sending emails (e.g., Gmail SMTP)\n\n## Installation\n\n1. Clone the repository:\n\n   ```\n   git clone [https://github.com/dodycode/nextauth-project-template.git](https://github.com/dodycode/nextauth-project-template.git)\n   cd nextauth-project-template\n   ```\n\n2. Install the dependencies:\n\n   ```\n   npm install\n   ```\n\n3. Create a `.env.local` file in the root directory and add the following environment variables:\n\n   ```\n   NEXTAUTH_URL=http://localhost:3000\n   NEXTAUTH_SECRET=your-nextauth-secret\n\n   NEXT_PUBLIC_SUPABASE_URL=your-supabase-project-url\n   NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key\n   SUPABASE_SERVICE_ROLE_KEY=your-supabase-service-role-key\n\n   GITHUB_ID=your-github-oauth-client-id\n   GITHUB_SECRET=your-github-oauth-client-secret\n\n   GOOGLE_CLIENT_ID=your-google-oauth-client-id\n   GOOGLE_CLIENT_SECRET=your-google-oauth-client-secret\n\n   EMAIL_SERVER_USER=username\n   EMAIL_SERVER_PASSWORD=password\n   EMAIL_SERVER_HOST=smtp.example.com\n   EMAIL_SERVER_PORT=587\n   EMAIL_FROM=noreply@example.com\n   ```\n\n   Replace the placeholder values with your actual credentials.\n\n## Usage\n\nTo run the development server:\n\n```\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n## Project Structure\n\n- `app/`: Contains the Next.js 13 app router pages and layouts\n- `components/`: Reusable React components\n- `lib/`: Utility functions and configurations\n- `public/`: Static assets\n\n## Authentication Flow\n\n1. Users can sign in using their email, GitHub account, or Google account.\n2. For email sign-in, a magic link is sent to the user's email.\n3. After clicking the magic link or authenticating with GitHub/Google, users are redirected to the dashboard.\n4. The session is managed by NextAuth.js and stored in the Supabase database.\n\n## Customization\n\n- Modify the UI components in the `components/` directory to change the look and feel of the application.\n- Add or remove authentication providers in the `auth.ts` file.\n- Customize the dashboard and other protected pages in the `app/` directory.\n\n## Deployment\n\nThis application can be deployed to any platform that supports Next.js applications, such as Vercel, Netlify, or your own server.\n\nRemember to update the `NEXTAUTH_URL` environment variable to your production URL when deploying.\n\n## Contributing\n\nContributions, issues, and feature requests are welcome. Feel free to check [issues page](https://github.com/dodycode/nextauth-project-template/issues) if you want to contribute.\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n## Contact\n\nIf you have any questions or feedback, please contact [Dodycode](mailto:prasetyodody17@gmail.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodycode%2Fnextauth-project-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdodycode%2Fnextauth-project-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodycode%2Fnextauth-project-template/lists"}