{"id":22147982,"url":"https://github.com/victorsouza19/user-api","last_synced_at":"2026-05-01T10:32:24.697Z","repository":{"id":149580521,"uuid":"432784752","full_name":"victorsouza19/user-api","owner":"victorsouza19","description":":octocat: RestAPI with Knex.js and JSON Web Token. ","archived":false,"fork":false,"pushed_at":"2021-12-31T02:19:31.000Z","size":45,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T12:48:18.304Z","etag":null,"topics":["node","nodejs","rest","rest-api"],"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/victorsouza19.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":"2021-11-28T17:53:56.000Z","updated_at":"2021-12-31T02:19:33.000Z","dependencies_parsed_at":"2023-05-18T04:30:21.556Z","dependency_job_id":null,"html_url":"https://github.com/victorsouza19/user-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/victorsouza19/user-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorsouza19%2Fuser-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorsouza19%2Fuser-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorsouza19%2Fuser-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorsouza19%2Fuser-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victorsouza19","download_url":"https://codeload.github.com/victorsouza19/user-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorsouza19%2Fuser-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32494270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["node","nodejs","rest","rest-api"],"created_at":"2024-12-01T23:25:27.455Z","updated_at":"2026-05-01T10:32:24.678Z","avatar_url":"https://github.com/victorsouza19.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User API\n\u003cbr\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \n![Badge](https://img.shields.io/badge/Node.js-339933?style=for-the-badge\u0026logo=nodedotjs\u0026logoColor=white)\n![Badge](https://img.shields.io/badge/Express.js-000000?style=for-the-badge\u0026logo=express\u0026logoColor=white)\n![Badge](https://img.shields.io/badge/JavaScript-323330?style=for-the-badge\u0026logo=javascript\u0026logoColor=F7DF1E)\n![Badge](https://img.shields.io/badge/JWT-000000?style=for-the-badge\u0026logo=JSON%20web%20tokens\u0026logoColor=white)\n![Badge](https://img.shields.io/badge/MySQL-005C84?style=for-the-badge\u0026logo=mysql\u0026logoColor=white)\n  \n\u003c/div\u003e\n\n\u003e RestAPI of user manipulation.\n\n### :construction: Recent Features\n\n- [x] UUID to recover token generate.\n- [x] NodeMailer to e-mail trigger for password recovery.\n- [x] .env file to store the environment variables. \n\n\n\n## 💻 Prerequisites\n\nBefore start, make sure you meet these requirements:\n\n* You have installed the latest stable version of `node` \n* You have installed and configured a  `MySQL client`.\n\n\n## 🚀 Installing and Configuring\n\nTo install UserAPI, follow these steps:\n\nClone the project and run the command in the root directory:\n```\nnpm install\n```\n\u003cbr\u003e\n\nChange the file \u003ccode\u003e.envexample\u003c/code\u003e with your environment variables:\n```\n## database config\nDB_HOST=127.0.0.1\nDB_USER=user\nDB_PWD=password\nDB_NAME=database\n\n## E-mail trigger config\nEMAIL_HOST=smtp.gmail.com\nEMAIL_PORT=465\nEMAIL_USER=youremail@gmail.com\nEMAIL_PASSWORD=123456\n## if your SMTP server didn't use SSL/TLS put false\nEMAIL_SECURE=true\n\n## JWT config\nJWT_SECRET=f9f217a18745919771a7936b3a164121a\n```\n\nAfter that, rename the file to \u003ccode\u003e.env\u003c/code\u003e\n\n## ☕ Using the UserAPI.\n\n Run the server with this line in the command line:\n```\nnode index.js\n```\n(I recommend `nodemon` to server auto-restart after changes)\n\nTest and enjoy! 😅\n\n## :books: Documentation\n\nTo view the API documentation, check the file [DOCUMENTATION](DOCUMENTATION.md).\n\n\n## 📫 Contributing for this project.\n\nTo contribute, follow these steps:\n\n1. Fork this repository.\n2. Create a branch with your feature name: `git checkout -b mynewfeature`.\n3. Make your changes and confirm: `git commit -m 'messagehere'`\n4. Push your change to the original branch: `git push origin mynewfeature`\n5. Create the pull request.\n\nInstead, you can check the GitHub documentation [Creating a Pull Request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request).\n\n## 🤝 Contributors\n\n\u003cdiv align=\"center\" \u003e\n  \u003ca href=\"#\"\u003e\n    \u003cimg src=\"https://github.com/victorsouza19.png\" width=\"100px;\" alt=\"Victor Souza image\"/\u003e\u003cbr\u003e\n    \u003csub\u003e\n      \u003cb\u003eVictor Souza\u003c/b\u003e\n    \u003c/sub\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n## 📝 License\n\nThis project is under license. Check the file [LICENSE](LICENSE.txt) for more details.\n\n[⬆ Go back to the top!](#User-API)\u003cbr\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorsouza19%2Fuser-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictorsouza19%2Fuser-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorsouza19%2Fuser-api/lists"}