{"id":19755645,"url":"https://github.com/jonatandb/nodejs-rest-api-jwt-mongo-fazt","last_synced_at":"2026-04-13T13:02:17.298Z","repository":{"id":82442800,"uuid":"475213475","full_name":"Jonatandb/NodeJS-REST-API-JWT-Mongo-Fazt","owner":"Jonatandb","description":"Nodejs Express REST API con JWT y Roles (Autorización y Autenticación) \u0026 Mongodb","archived":false,"fork":false,"pushed_at":"2022-03-31T01:04:36.000Z","size":105,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T05:25:08.958Z","etag":null,"topics":["api-rest","babel","bcryptjs","dotenv","express","helmet","jonatandb","jwt","mongoose","morgan-middleware","nodejs","nodemon","rest-api"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/watch?v=lV7mxivGX_I\u0026t=61s\u0026ab_channel=FaztCode","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/Jonatandb.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":"2022-03-28T23:36:57.000Z","updated_at":"2022-04-02T03:46:27.000Z","dependencies_parsed_at":"2023-06-15T17:30:29.072Z","dependency_job_id":null,"html_url":"https://github.com/Jonatandb/NodeJS-REST-API-JWT-Mongo-Fazt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Jonatandb/NodeJS-REST-API-JWT-Mongo-Fazt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jonatandb%2FNodeJS-REST-API-JWT-Mongo-Fazt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jonatandb%2FNodeJS-REST-API-JWT-Mongo-Fazt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jonatandb%2FNodeJS-REST-API-JWT-Mongo-Fazt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jonatandb%2FNodeJS-REST-API-JWT-Mongo-Fazt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jonatandb","download_url":"https://codeload.github.com/Jonatandb/NodeJS-REST-API-JWT-Mongo-Fazt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jonatandb%2FNodeJS-REST-API-JWT-Mongo-Fazt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31753551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-rest","babel","bcryptjs","dotenv","express","helmet","jonatandb","jwt","mongoose","morgan-middleware","nodejs","nodemon","rest-api"],"created_at":"2024-11-12T03:12:42.361Z","updated_at":"2026-04-13T13:02:17.271Z","avatar_url":"https://github.com/Jonatandb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## [Nodejs REST API con JWT y Roles (Autorización y Autenticación) \u0026 Mongodb](https://www.youtube.com/watch?v=lV7mxivGX_I\u0026t=61s\u0026ab_channel=FaztCode)\n\nEste es un ejemplo práctico de Nodejs y MongoDB en el que se crea una REST API que hace un CRUD de productos, permite autenticar a usuarios y establecer roles para la autorizacion de rutas en el servidor.\n\nAdicionalmente se usará babel para utilizar las últimas características de Javascript en Nodejs.\n\nCódigo de ejemplo:\nhttps://github.com/FaztWeb/company-products-api\n\n---\n\nTecnologías utilizadas:\n\n- [NodeJs](https://nodejs.org/es/) - a JavaScript runtime built on Chrome's V8 JavaScript engine.\n- [Express](https://expressjs.com/es/) - Fast, unopinionated, minimalist web framework for Node.js\n- [MongoDb](https://www.mongodb.com/es) - a document database designed for ease of development and scaling.\n- [JWT (JSON Web Token)](https://jwt.io/) - JWT are an open, industry standard RFC 7519 method for representing claims securely between two parties.\n- [Bcryptjs](https://www.npmjs.com/package/bcryptjs) - Optimized bcrypt in JavaScript with zero dependencies. Compatible to the C++ bcrypt binding on node.js and also working in the browser.\n- [Cors](https://www.npmjs.com/package/cors) - CORS is a node.js package for providing a Connect/Express middleware that can be used to enable CORS with various options.\n- [DotEnv](https://www.npmjs.com/package/dotenv) - Dotenv is a zero-dependency module that loads environment variables from a .env file into process.env. Storing configuration in the environment separate from code is based on The Twelve-Factor App methodology.\n- [Mongoose](https://mongoosejs.com/) - elegant mongodb object modeling for node.js\n- [Morgan](https://www.npmjs.com/package/morgan) - HTTP request logger middleware for node.js\n- [Helmet](https://www.npmjs.com/package/helmet) - Helmet helps you secure your Express apps by setting various HTTP headers. It's not a silver bullet, but it can help!\n- [Babeljs](https://babeljs.io/) - a JavaScript compiler that allow to use next generation JavaScript, today.\n- [Nodemon](https://www.npmjs.com/package/nodemon) - a tool that helps develop node.js based applications by automatically restarting the node application when file changes in the directory are detected.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonatandb%2Fnodejs-rest-api-jwt-mongo-fazt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonatandb%2Fnodejs-rest-api-jwt-mongo-fazt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonatandb%2Fnodejs-rest-api-jwt-mongo-fazt/lists"}