{"id":17345530,"url":"https://github.com/simoneas02/api-node-example","last_synced_at":"2025-03-27T10:28:10.285Z","repository":{"id":69061916,"uuid":"204317465","full_name":"simoneas02/api-node-example","owner":"simoneas02","description":null,"archived":false,"fork":false,"pushed_at":"2019-09-09T03:21:18.000Z","size":42,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T15:22:02.403Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/simoneas02.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2019-08-25T16:02:27.000Z","updated_at":"2023-03-07T16:28:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"589bceaa-3c92-4ed7-8c7a-52790c11e8c9","html_url":"https://github.com/simoneas02/api-node-example","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/simoneas02%2Fapi-node-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simoneas02%2Fapi-node-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simoneas02%2Fapi-node-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simoneas02%2Fapi-node-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simoneas02","download_url":"https://codeload.github.com/simoneas02/api-node-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245825859,"owners_count":20678664,"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":[],"created_at":"2024-10-15T16:32:22.514Z","updated_at":"2025-03-27T10:28:10.261Z","avatar_url":"https://github.com/simoneas02.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# api-node-example\n\n\u003e A simple `api` created with `NodeJS`, `express` and `mongo` just for my learnning.\n\n## Run the project local\n\n**0 -** install the basic dependencies\n\n- [NodeJS](https://nodejs.org/en/)\n- [Mongo](https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/)\n\n**1 -** Clone the project and install the dependencies:\n\n```sh\n$ git clone https://github.com/simoneas02/api-node-example\n$ cd api-node-example/\n$ yarn\n```\n\n**2 -** Start development mode:\n\n```sh\n$ yarn start\n```\n\n## You can use the fllowing endpoints:\n\n### Resgister\n\n- Create a POST request to `http://localhost:3000/auth/resgister`\n- Header should be `application/json`\n- Body should contain the following fields:\n\n```JSON\n{\n\t\"name\": \"some-name\",\n\t\"email\": \"some-email.com\",\n\t\"password\": \"some-password\"\n}\n```\n\n### Authenticate\n\nAfter that you created an User:\n\n- Create a POST request to `http://localhost:3000/auth/authenticate`\n- Header should be `application/json`\n- Body should contain the following fields:\n\n```JSON\n{\n\t\"email\": \"some-email.com\",\n\t\"password\": \"some-password\"\n}\n```\n\n### Projects\n\nAfter that you created an User:\n\n- Create a GET request to `http://localhost:3000/projects`\n- Body should be empty\n- Header should contain the following key and value:\n\n```\n\tkey: Authorization\n\tvalue: Bearer some-crazy-token\n```\n\n### Forgot Password\n\nAfter that you created an User:\n\n- Create a POST request to `http://localhost:3000/auth/forgot_password`\n- Header should be `application/json`\n- Body should contain the following fields:\n\n```JSON\n{\n\t\"email\": \"some-email.com\",\n}\n```\n\n### Reset Password\n\nAfter that you created an User and got your token on your email:\n\n- Create a POST request to `http://localhost:3000/auth/reset_password`\n- Header should be `application/json`\n- Body should contain the following fields:\n\n```JSON\n{\n\t\"email\": \"some-email.com\",\n\t\"token\": \"crazy-token\",\n\t\"password\": \"new-password\"\n}\n```\n\n## Contributing\n\nFind on our [issues](https://github.com/simoneas02/api-node-example/issues/) the next steps of the project ;)\nWant to contribute? [Follow these recommendations](https://github.com/simoneas02/api-node-example/blob/master/CONTRIBUTING.md).\n\n## History\n\nSee [Releases](https://github.com/simoneas02/api-node-example/releases) for detailed changelog.\n\n## License\n\n[MIT License](https://github.com/simoneas02/api-node-example/blob/master/LICENSE.md) © [Simone Amorim](https://simoneas02.github.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimoneas02%2Fapi-node-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimoneas02%2Fapi-node-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimoneas02%2Fapi-node-example/lists"}