{"id":15176816,"url":"https://github.com/ismetcanbyk/nestjs-auth-jwt","last_synced_at":"2026-01-31T19:34:39.240Z","repository":{"id":218808804,"uuid":"746600975","full_name":"ismetcanbyk/NestJs-Auth-Jwt","owner":"ismetcanbyk","description":"Authentication project with nest js and prisma","archived":false,"fork":false,"pushed_at":"2024-12-15T13:17:41.000Z","size":102,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T02:02:28.946Z","etag":null,"topics":["auth","authentication","authorization","jwt","jwt-authentication","jwt-token","nest","nestjs","nestjs-backend","nodejs","prisma","prisma-orm"],"latest_commit_sha":null,"homepage":"","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/ismetcanbyk.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-01-22T10:35:50.000Z","updated_at":"2025-01-22T18:52:53.000Z","dependencies_parsed_at":"2024-01-23T23:35:46.627Z","dependency_job_id":"ac69bd69-9ed6-456a-bf6e-e351950b0abc","html_url":"https://github.com/ismetcanbyk/NestJs-Auth-Jwt","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"ae762efd2b3e2f9656a356d3250a166c56ef5290"},"previous_names":["ismetcanbyk/nestjs-auth-jwt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ismetcanbyk/NestJs-Auth-Jwt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ismetcanbyk%2FNestJs-Auth-Jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ismetcanbyk%2FNestJs-Auth-Jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ismetcanbyk%2FNestJs-Auth-Jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ismetcanbyk%2FNestJs-Auth-Jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ismetcanbyk","download_url":"https://codeload.github.com/ismetcanbyk/NestJs-Auth-Jwt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ismetcanbyk%2FNestJs-Auth-Jwt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259747215,"owners_count":22905310,"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":["auth","authentication","authorization","jwt","jwt-authentication","jwt-token","nest","nestjs","nestjs-backend","nodejs","prisma","prisma-orm"],"created_at":"2024-09-27T13:42:49.533Z","updated_at":"2026-01-31T19:34:39.196Z","avatar_url":"https://github.com/ismetcanbyk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NestJS Authentication with JWT\n\nThis repository demonstrates how to implement user authentication in a NestJS application using JWT (JSON Web Tokens). The project is designed to provide a clean and modular structure for authentication and authorization processes.\n\n## Features\n\n- **User Authentication**: Secure user login with JWT.\n- **Registration System**: Allows users to create accounts.\n- **Role-Based Authorization**: Define and manage user roles.\n- **Validation**: Ensures proper input data for registration and login.\n- **Environment Configuration**: `.env` file for managing sensitive configurations.\n- **Scalable Structure**: Modular and extensible for adding more features.\n\n## Tech Stack\n\n- **NestJS**: Framework for building scalable server-side applications.\n- **JWT**: Secure token-based authentication.\n- **TypeScript**: Strongly typed programming language for better development experience.\n\n## Getting Started\n\n### Prerequisites\n\nEnsure you have the following installed on your system:\n\n- [Node.js](https://nodejs.org/) (v16 or later)\n- [npm](https://www.npmjs.com/) or [Yarn](https://yarnpkg.com/)\n- A compatible database (e.g., PostgreSQL)\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/ismetcanbyk/NestJs-Auth-Jwt.git\n   cd NestJs-Auth-Jwt\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n3. Set up environment variables:\n\n   Create a `.env` file in the project root and configure the following variables:\n\n   ```env\n   DATABASE_URL=\u003cyour_database_url\u003e\n   JWT_SECRET=\u003cyour_jwt_secret\u003e\n   PORT=8082\n   ```\n\n### Running the Application\n\n1. Start the development server:\n\n   ```bash\n   npm run start:dev\n   ```\n\n2. Access the API at `http://localhost:8082`.\n\n### Testing\n\nRun the test suite:\n\n```bash\nnpm run test\n```\n\n## API Endpoints\n\n- **POST /auth/register**: Register a new user.\n- **POST /auth/login**: Authenticate a user and return a JWT.\n- **GET /profile**: Access the authenticated user's profile (requires valid JWT).\n\n## Folder Structure\n\n- **src/auth**: Contains authentication logic, guards, and strategies.\n- **src/users**: User entity and service for user management.\n- **src/common**: Shared modules, pipes, and filters.\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request for review.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fismetcanbyk%2Fnestjs-auth-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fismetcanbyk%2Fnestjs-auth-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fismetcanbyk%2Fnestjs-auth-jwt/lists"}