{"id":21270476,"url":"https://github.com/phuonghieuto/nestjs-auth-backend","last_synced_at":"2026-05-10T10:26:13.398Z","repository":{"id":260139906,"uuid":"878842081","full_name":"phuonghieuto/nestjs-auth-backend","owner":"phuonghieuto","description":"A NestJS backend for user authentication, including registration, login, and user retrieval, using MongoDB, Swagger for API docs, and CORS for specified frontend URLs.","archived":false,"fork":false,"pushed_at":"2024-10-31T02:07:40.000Z","size":422,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T02:29:44.212Z","etag":null,"topics":["authentication","cors","mongodb","nestjs","swagger","typescript"],"latest_commit_sha":null,"homepage":"https://nestjs-auth-backend.vercel.app/api","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/phuonghieuto.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-10-26T08:58:13.000Z","updated_at":"2024-10-31T02:09:54.000Z","dependencies_parsed_at":"2024-10-29T20:43:49.198Z","dependency_job_id":null,"html_url":"https://github.com/phuonghieuto/nestjs-auth-backend","commit_stats":null,"previous_names":["phuonghieuto/nestjs-auth-backend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuonghieuto%2Fnestjs-auth-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuonghieuto%2Fnestjs-auth-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuonghieuto%2Fnestjs-auth-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuonghieuto%2Fnestjs-auth-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phuonghieuto","download_url":"https://codeload.github.com/phuonghieuto/nestjs-auth-backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243725565,"owners_count":20337668,"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","cors","mongodb","nestjs","swagger","typescript"],"created_at":"2024-11-21T08:17:35.222Z","updated_at":"2026-05-10T10:26:08.337Z","avatar_url":"https://github.com/phuonghieuto.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"250\" src=\"https://nestjs.com/img/logo-small.svg\" alt=\"NestJS Logo\"\u003e\n  \u003cbr\u003e\n  \u003ch2\u003enestjs-auth-backend\u003c/h2\u003e\n  \u003chr\u003e\n\u003c/div\u003e\n\n# Getting started\n\n## Installation\n\nClone the repository\n\n    git clone https://github.com/phuonghieuto/nestjs-auth-backend.git\n\nSwitch to the repo folder\n\n    cd nestjs-auth-backend\n\nInstall dependencies\n\n    npm install\n\nCreate a `.env` file and write it as follows\n\n    MONGODB_URI='your-mongodb-uri'\n    JWT_SECRET='jwt-secret'\n    JWT_EXPIRATION='1h'\n \n----------\n\n## Database\n\nThe example codebase uses [Mongoose](https://mongoosejs.com/).\n\n----------\n\n## NPM scripts\n- `npm run start` - Start application\n- `npm run start:dev` - Start application in development mode\n\n----------\n\n# Authentication\n\nThis application uses JSON Web Token (JWT) to handle authentication.\n\n----------\n\n# Swagger API docs\n\nVisit http://127.0.0.1:8080/api in your browser\n\nThis example repo uses the NestJS swagger module for API documentation. [NestJS Swagger](https://github.com/nestjs/swagger) - [www.swagger.io](https://swagger.io/)\n\n# :link: Demo\n\n-   \u003ca target=\"_blank\" href=\"https://nestjs-auth-backend.vercel.app/api\"\u003e Click Here \u003c/a\u003e to checkout how this api works.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphuonghieuto%2Fnestjs-auth-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphuonghieuto%2Fnestjs-auth-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphuonghieuto%2Fnestjs-auth-backend/lists"}