{"id":16629075,"url":"https://github.com/bradgarropy/weighter-api","last_synced_at":"2026-04-12T15:32:51.671Z","repository":{"id":93266207,"uuid":"101253424","full_name":"bradgarropy/weighter-api","owner":"bradgarropy","description":"REST API to track your weight over time!","archived":false,"fork":false,"pushed_at":"2018-03-15T01:57:06.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-13T01:47:59.372Z","etag":null,"topics":["dotenv","eslint","express","expressjs","javascript","jsonwebtoken","jwt","mongodb","mongoose","node","nodejs","nodemailer","rest","rest-api","web-app","web-application","web-server"],"latest_commit_sha":null,"homepage":"https://weighter-api.herokuapp.com/","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/bradgarropy.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":"2017-08-24T04:17:51.000Z","updated_at":"2018-03-15T01:57:07.000Z","dependencies_parsed_at":"2023-08-25T07:49:38.657Z","dependency_job_id":null,"html_url":"https://github.com/bradgarropy/weighter-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bradgarropy/weighter-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradgarropy%2Fweighter-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradgarropy%2Fweighter-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradgarropy%2Fweighter-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradgarropy%2Fweighter-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradgarropy","download_url":"https://codeload.github.com/bradgarropy/weighter-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradgarropy%2Fweighter-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274907865,"owners_count":25371821,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"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":["dotenv","eslint","express","expressjs","javascript","jsonwebtoken","jwt","mongodb","mongoose","node","nodejs","nodemailer","rest","rest-api","web-app","web-application","web-server"],"created_at":"2024-10-12T04:39:25.764Z","updated_at":"2026-04-12T15:32:51.626Z","avatar_url":"https://github.com/bradgarropy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weighter API\n\nAfter creating a completely server side weight tracking app ([weighter](https://github.com/bradgarropy/weighter)), it was time to implement a client side front end, which means I also needed a REST API on the server side. Using my [NWA Template](https://github.com/bradgarropy/nwa) as a starting point, I was able to quickly spin up some user and weight models. This API acts as the backend to both the [React](https://reactjs.org/) and [Vue](https://vuejs.org/) implementations of the front end.\n\nBoth implementations are deployed on [Heroku](https://dashboard.heroku.com/apps) at the links below:  \nhttp://weighter-react.herokuapp.com/  \nhttp://weighter-vue.herokuapp.com/  \n\nYou can access the API here:\nhttps://weighter-api.herokuapp.com/\n\n\n## API\n\n### Feedback\n\nSend feedback to the site maintainer.\n\n```\nPOST /api/feedback\n{\n  \"email\": \u003cstring\u003e,\n  \"feedback\": \u003cstring\u003e\n}\n```\n\n### Forgot Password\n\nRequests a password reset token be sent to the email provided.\n\n```\nPOST /api/forgot\n{\n  \"email\": \u003cstring\u003e\n}\n```\n\n### User Login\n\nValidates user credentials and responds with a [JSON Web Token](https://jwt.io/)\n\n```\nPOST /api/login\n{\n  \"email\": \u003cstring\u003e,\n  \"password\": \u003cstring\u003e\n}\n```\n\n### Change Password\n\nChanges the user's password.\n\n```\nPOST /api/password\n{\n  \"current_password\": \u003cstring\u003e,\n  \"new_password\": \u003cstring\u003e,\n  \"confirmation\": \u003cstring\u003e\n}\n```\n\n### Reset Password\n\nAllows the user to change their password by providing a reset token.\n\n```\nPOST   /api/reset/:token\n{\n  \"password\": \u003cstring\u003e,\n  \"confirmation\": \u003cstring\u003e\n}\n```\n\n### User\n\nUser CRUD operations.\n\n```\nGET /api/user\n\nGET /api/user/:id\n\nPOST /api/user\n{\n  \"first_name\": \u003cstring\u003e,\n  \"last_name\": \u003cstring\u003e,\n  \"email\": \u003cstring\u003e,\n  \"password\": \u003cstring\u003e,\n  \"confirmation\": \u003cstring\u003e,\n}\n\nDELETE /api/user/:id\n\nPUT /api/user/:id\n{\n  \"first_name\": \u003cstring\u003e,\n  \"last_name\": \u003cstring\u003e,\n  \"email\": \u003cstring\u003e\n}\n```\n\n### Weight\n\nWeight CRUD operations.\n\n```\nGET /api/weight\n\nGET /api/weight/:id\n\nPOST /api/weight\n{\n  \"date\": \u003cstring\u003e,\n  \"weight\": \u003cstring\u003e\n}\n\nDELETE /api/weight/:id\n\nPUT /api/weight/:id\n{\n  \"date\": \u003cstring\u003e,\n  \"weight\": \u003cstring\u003e\n}\n```\n\n## Usage\n\nIf you would like to build and run this API locally, follow the instructions below.\n\n\nFirst, clone the repository.\n\n```\ngit clone https://github.com/bradgarropy/weighter-api.git\n```\n\nNext, install the dependencies.\n\n```\nnpm install\n```\n\nThen, start the web server.\n\n```\nnpm start\n```\n\nFinally, navigate to the site.\n\n```\nlocalhost:3000\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradgarropy%2Fweighter-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradgarropy%2Fweighter-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradgarropy%2Fweighter-api/lists"}