{"id":14969881,"url":"https://github.com/vircoding/nuxt-authentication-starter-template","last_synced_at":"2025-10-18T18:19:47.425Z","repository":{"id":255272093,"uuid":"848757613","full_name":"vircoding/nuxt-authentication-starter-template","owner":"vircoding","description":"Robust and scalable full-stack template for building applications with Nuxt 3","archived":false,"fork":false,"pushed_at":"2024-09-13T01:26:51.000Z","size":1002,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T18:15:47.209Z","etag":null,"topics":["handlebars","jsonwebtoken","mongodb","nodemailer","nuxt3","prisma","typescript","zod"],"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/vircoding.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-08-28T10:59:21.000Z","updated_at":"2024-09-22T10:47:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"cbd7992d-0dcd-4f22-878b-25dda36b0242","html_url":"https://github.com/vircoding/nuxt-authentication-starter-template","commit_stats":{"total_commits":51,"total_committers":1,"mean_commits":51.0,"dds":0.0,"last_synced_commit":"c14c9f8d03e1c1f059ebbf1dba385d41ffb5c397"},"previous_names":["vircoding/nuxt-authentication-starter-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vircoding%2Fnuxt-authentication-starter-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vircoding%2Fnuxt-authentication-starter-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vircoding%2Fnuxt-authentication-starter-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vircoding%2Fnuxt-authentication-starter-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vircoding","download_url":"https://codeload.github.com/vircoding/nuxt-authentication-starter-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238310333,"owners_count":19450841,"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":["handlebars","jsonwebtoken","mongodb","nodemailer","nuxt3","prisma","typescript","zod"],"created_at":"2024-09-24T13:42:34.748Z","updated_at":"2025-10-18T18:19:42.377Z","avatar_url":"https://github.com/vircoding.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nuxt Authentication Starter Template\n\nThis repository provides a starting point for building secure and robust authentication systems with Nuxt.js. It's designed to be a comprehensive template that includes all the necessary features for managing user accounts, from registration and login to password recovery and account verification via emails.\n\n## Features\n\n- **User Management:**\n\n  - Registration\n  - Login\n  - Session Persistence (Refresh Tokens)\n  - Email Verification\n  - Account Update\n  - Account Deletion\n  - Password Reset\n\n- **Robust Security:**\n\n  - Password Hashing (bcrypt)\n  - JWT Authentication\n  - Email Verification for Account Confirmation\n\n- **Scalable Architecture:**\n\n  - [Nuxt](https://nuxt.com/) as the full-stack framework\n  - [MongoDB](https://www.mongodb.com/) as a non-relational database\n  - [Prisma](https://www.prisma.io/) as the ORM for managing the database\n  - [Nodemailer](https://nodemailer.com/) for sending emails\n  - [Zod](https://zod.dev/) for data validation\n  - [Handlebars](https://handlebarsjs.com/) for dynamic templates\n\n## Getting Started\n\n1. **Clone the repository:**\n\n```bash\ngit clone https://github.com/vircoding/nuxt-authentication-starter-template.git\ncd nuxt-authentication-starter-template\n```\n\n2. **Install dependencies:**\n\n```bash\nnpm install\n```\n\n3. **Setup environment variables:**\n   - **Create a .env file in the root directory** based on the .env.example file provided.\n   - **Fill in the following environment variables:**\n\n```\nDATABASE_URL=\u003cyour-mongodb-url\u003e\nJWT_REFRESH_SECRET=\u003cyour-refresh-secret-key\u003e\nJWT_ACCESS_SECRET=\u003cyour-access-secret-key\u003e\nJWT_VERIFICATION_SECRET=\u003cyour-verification-secret-key\u003e\nEMAIL_HOST=\u003chost-for-sending-emails\u003e\nEMAIL_USER=\u003cyour-email\u003e\nEMAIL_PASSWORD=\u003cyour-email-password\u003e\n```\n\n4. **Run the development server:**\n\n```bash\nnpm run dev\n```\n\n5. **Access the server:**\n   The server will be available at http://localhost:3000.\n\n## Usage\n\n### Authentication\n\nThe API uses [JWTs](https://jwt.io/) for authentication. Access tokens are generated when a user logs in, and refresh tokens are used to obtain new access tokens when the access token expires.\n\n### Email Verification\n\nEmail verification is handled using [Nodemailer](https://nodemailer.com/). When a new user is created, a verification email is sent to their email address.\n\n### Data Validation\n\n[Zod](https://zod.dev/) is used to validate user data. This helps ensure that data is in the correct format and meets the required constraints.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n\n## Contributing\n\nContributions are welcome! Feel free to open an issue or submit a pull request.\n\n## Disclaimer\n\nThis template is intended to be a starting point to building a full-stack application. It is not intended to be a complete solution. You may need to modify the code and add additional features to meet your specific needs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvircoding%2Fnuxt-authentication-starter-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvircoding%2Fnuxt-authentication-starter-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvircoding%2Fnuxt-authentication-starter-template/lists"}