{"id":24199183,"url":"https://github.com/shahfh/node.js-api-authentication-with-jwt","last_synced_at":"2026-04-11T01:11:46.171Z","repository":{"id":181962152,"uuid":"667729183","full_name":"ShahFH/Node.js-API-Authentication-with-JWT","owner":"ShahFH","description":"Node.js-API-Authentication-with-JWT","archived":false,"fork":false,"pushed_at":"2023-08-04T17:46:05.000Z","size":5521,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T20:39:31.058Z","etag":null,"topics":["api","expressjs","jwt-authentication","mongodb","mongoose","nodeapiwithjwttoken","nodejs","password-hashing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ShahFH.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":"2023-07-18T07:12:53.000Z","updated_at":"2023-07-20T09:52:59.000Z","dependencies_parsed_at":"2025-01-13T20:37:09.400Z","dependency_job_id":"38e0a6fd-ca89-4226-87f1-c31c1c5edd46","html_url":"https://github.com/ShahFH/Node.js-API-Authentication-with-JWT","commit_stats":null,"previous_names":["shahfh/node.js-api-authentication-with-jwt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShahFH%2FNode.js-API-Authentication-with-JWT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShahFH%2FNode.js-API-Authentication-with-JWT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShahFH%2FNode.js-API-Authentication-with-JWT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShahFH%2FNode.js-API-Authentication-with-JWT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShahFH","download_url":"https://codeload.github.com/ShahFH/Node.js-API-Authentication-with-JWT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241638046,"owners_count":19995101,"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":["api","expressjs","jwt-authentication","mongodb","mongoose","nodeapiwithjwttoken","nodejs","password-hashing"],"created_at":"2025-01-13T20:34:57.067Z","updated_at":"2026-04-11T01:11:46.134Z","avatar_url":"https://github.com/ShahFH.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js Authentication API\nThis repository contains a Node.js API that provides authentication functionality for use in various applications. The API utilizes JWT (JSON Web Tokens) for authentication and MongoDB as its database. It also incorporates Mongoose to create models and connect to the Express server, bcryptjs for password hashing, and jwt to secure private routes.\n\n## Technologies Used ⚙ \n- Node.js\n- Express.js\n- MongoDB\n- Mongoose\n- bcryptjs\n- JSON Web Tokens (JWT)\n\n## Installation ⚒ \n1. Clone the repository to your local machine using \u003ccode\u003egit clone\u003c/code\u003e URL\n2. Install the required dependencies: \u003ccode\u003e npm install \u003c/code\u003e\n3. Set up the MongoDB connection:\n```\nMake sure you have MongoDB installed and running.\nEdit the config.js file to specify your MongoDB connection URL.\n```\n\n## Usage\nTo start the server, use the following command:\n\u003ccode\u003e npm start \u003c/code\u003e\n\u003cbr\u003eThe server will be running at http://localhost:3000 by default. You can change the port by modifying the PORT constant in the index.js file.\n\n## Endpoints\nThe following API endpoints are available:\n```\"copy\"\nPOST /api/user/login\nPOST /api/user/register\n\n```\n\nFeel free to use, modify, and distribute this code as per the terms of the MIT License. However, please note that this project comes with no warranties. Use it at your own risk.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahfh%2Fnode.js-api-authentication-with-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshahfh%2Fnode.js-api-authentication-with-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahfh%2Fnode.js-api-authentication-with-jwt/lists"}