{"id":13764579,"url":"https://github.com/anilahir/nestjs-authentication-and-authorization","last_synced_at":"2025-04-12T22:58:53.417Z","repository":{"id":139156731,"uuid":"588846609","full_name":"anilahir/nestjs-authentication-and-authorization","owner":"anilahir","description":"NestJS Authentication without Passport using Bcrypt, JWT and Redis","archived":false,"fork":false,"pushed_at":"2025-04-11T04:20:34.000Z","size":3545,"stargazers_count":226,"open_issues_count":0,"forks_count":25,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T22:58:42.508Z","etag":null,"topics":["bcrypt","docker","jwt","nest","nestjs","nestjs-auth","nestjs-authentication","nestjs-authentication-and-authorization","nestjs-backend","nestjs-boilerplate","nestjs-docker","nestjs-jwt","nestjs-jwt-typeorm","nestjs-redis","nestjs-starter-template","nestjs-swagger","nestjs-typeorm","typeorm","typescript"],"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/anilahir.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}},"created_at":"2023-01-14T08:00:49.000Z","updated_at":"2025-04-11T04:20:38.000Z","dependencies_parsed_at":"2024-01-04T05:24:03.619Z","dependency_job_id":"4267edfd-9543-476d-9255-8093b8e0c15f","html_url":"https://github.com/anilahir/nestjs-authentication-and-authorization","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilahir%2Fnestjs-authentication-and-authorization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilahir%2Fnestjs-authentication-and-authorization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilahir%2Fnestjs-authentication-and-authorization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilahir%2Fnestjs-authentication-and-authorization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anilahir","download_url":"https://codeload.github.com/anilahir/nestjs-authentication-and-authorization/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643036,"owners_count":21138353,"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":["bcrypt","docker","jwt","nest","nestjs","nestjs-auth","nestjs-authentication","nestjs-authentication-and-authorization","nestjs-backend","nestjs-boilerplate","nestjs-docker","nestjs-jwt","nestjs-jwt-typeorm","nestjs-redis","nestjs-starter-template","nestjs-swagger","nestjs-typeorm","typeorm","typescript"],"created_at":"2024-08-03T16:00:23.243Z","updated_at":"2025-04-12T22:58:53.394Z","avatar_url":"https://github.com/anilahir.png","language":"TypeScript","funding_links":[],"categories":["Resources"],"sub_categories":[],"readme":"# NestJS Authentication\n\n![Workflow Test](https://github.com/anilahir/nestjs-authentication-and-authorization/actions/workflows/ci.yml/badge.svg)\n![Prettier](https://img.shields.io/badge/Code%20style-prettier-informational?logo=prettier\u0026logoColor=white)\n[![GPL v3 License](https://img.shields.io/badge/License-GPLv3-green.svg)](./LICENSE)\n[![HitCount](https://hits.dwyl.com/anilahir/nestjs-authentication-and-authorization.svg)](https://hits.dwyl.com/anilahir/nestjs-authentication-and-authorization)\n\n## Description\n\nNestJS Authentication without Passport using Bcrypt, JWT and Redis\n\n## Features\n\n1. Register\n2. Login\n3. Show profile\n4. Logout\n\n## Technologies stack:\n\n- JWT\n- Bcrypt\n- TypeORM + MySQL\n- Redis\n- Docker\n\n## Setup\n\n### 1. Install the required dependencies\n\n```bash\n$ npm install\n```\n\n### 2. Rename the .env.example filename to .env and set your local variables\n\n```bash\n$ mv .env.example .env\n```\n\n### 3. Start the application\n\n```bash\n# development\n$ npm run start\n\n# watch mode\n$ npm run start:dev\n\n# production mode\n$ npm run start:prod\n```\n\n## Docker for development\n\n```bash\n# start the application\n$ npm run docker:up\n\n# stop the application\n$ npm run docker:down\n```\n\n## Swagger documentation\n\n- [localhost:3000/docs](http://localhost:3000/docs)\n\n## References\n\n- [NestJS Authentication without Passport](https://trilon.io/blog/nestjs-authentication-without-passport)\n- [NestJS, Redis and Postgres local development with Docker Compose](https://www.tomray.dev/nestjs-docker-compose-postgres)\n\n## Author\n\n👤 **Anil Ahir**\n\n- Twitter: [@anilahir220](https://twitter.com/anilahir220)\n- Github: [@anilahir](https://github.com/anilahir)\n- LinkedIn: [@anilahir](https://www.linkedin.com/in/anilahir)\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n## Related projects\n\nExplore more NestJS example projects:\n\n[![GraphQL example](https://github-readme-stats.vercel.app/api/pin/?username=anilahir\u0026repo=nestjs-graphql-demo)](https://github.com/anilahir/nestjs-graphql-demo)\n\n## License\n\nRelease under the terms of [MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanilahir%2Fnestjs-authentication-and-authorization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanilahir%2Fnestjs-authentication-and-authorization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanilahir%2Fnestjs-authentication-and-authorization/lists"}