{"id":20536876,"url":"https://github.com/pras75299/nextjsauthentication","last_synced_at":"2026-04-21T06:05:18.986Z","repository":{"id":232342604,"uuid":"781656412","full_name":"pras75299/nextjsAuthentication","owner":"pras75299","description":"Fullstack Next Js Authentication with MongoDB, JWT, Bcrypt and NextJS Router","archived":false,"fork":false,"pushed_at":"2024-04-10T20:40:47.000Z","size":230,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-11T08:48:07.333Z","etag":null,"topics":["authentication","bcryptjs","jwt","mailtrap","mongodb","moongose","nextjs-starter","nextjs-template","nextjs14"],"latest_commit_sha":null,"homepage":"https://nextjs-authentication-bay.vercel.app/","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/pras75299.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}},"created_at":"2024-04-03T19:47:09.000Z","updated_at":"2024-04-14T20:41:17.516Z","dependencies_parsed_at":"2024-04-14T20:41:05.507Z","dependency_job_id":"025a632d-1917-49f2-bcf7-f9ed3dbf4df5","html_url":"https://github.com/pras75299/nextjsAuthentication","commit_stats":null,"previous_names":["pras75299/nextjsauthentication"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pras75299%2FnextjsAuthentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pras75299%2FnextjsAuthentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pras75299%2FnextjsAuthentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pras75299%2FnextjsAuthentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pras75299","download_url":"https://codeload.github.com/pras75299/nextjsAuthentication/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242144496,"owners_count":20078964,"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","bcryptjs","jwt","mailtrap","mongodb","moongose","nextjs-starter","nextjs-template","nextjs14"],"created_at":"2024-11-16T00:38:08.399Z","updated_at":"2026-04-21T06:05:18.952Z","avatar_url":"https://github.com/pras75299.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js, MongoDB, bcrypt, JWT, and Mailtrap Project\n\nThis project is built using Next.js and integrates MongoDB for database operations, bcrypt for password hashing, JWT for authentication, and Mailtrap to simulate email sending in a development environment.\n\n## Getting Started\n\nFirst, install the dependencies:\n\n```bash\nnpm install\n```\n\nThen, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n# or\nbun dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) to see the application in action.\n\n## Features\n\n- User Authentication: Sign up, sign in, and sign out functionality using JWT.\n- Password Hashing: Secure password hashing using bcrypt.\n- Email Simulation: Email simulation for development purposes with Mailtrap.\n- Database Integration: MongoDB integration for storing and managing user data.\n\n## Configuration\n\nEnsure you have the following environment variables configured in your `.env` file:\n\n- `MONGODB_URI`: Your MongoDB connection string.\n- `DOMAIN`: Your localhost url connection string and in production update the url with production url.\n- `JWT_SECRET`: A secret key for JWT signing and verification.\n- `MAILTRAP_USER`: Your Mailtrap username.\n- `MAILTRAP_PASS`: Your Mailtrap password.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a pull request or open an issue for any bugs or feature requests.\n\n## Deployment\n\nFor deployment instructions and best practices, refer to the [Next.js deployment documentation](https://nextjs.org/docs/deployment).\n\n## License\n\nThis project is open-sourced under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpras75299%2Fnextjsauthentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpras75299%2Fnextjsauthentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpras75299%2Fnextjsauthentication/lists"}