{"id":22982864,"url":"https://github.com/neomaxzero/mwt-rating","last_synced_at":"2025-04-02T10:20:19.187Z","repository":{"id":119683924,"uuid":"57856913","full_name":"neomaxzero/mWt-rating","owner":"neomaxzero","description":"Auth0 WebTask that persist average points","archived":false,"fork":false,"pushed_at":"2016-05-04T13:38:18.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T01:28:05.385Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neomaxzero.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":"2016-05-01T23:48:09.000Z","updated_at":"2016-05-01T23:50:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"05b1567a-3214-46a5-b00e-1876952f77e0","html_url":"https://github.com/neomaxzero/mWt-rating","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/neomaxzero%2FmWt-rating","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomaxzero%2FmWt-rating/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomaxzero%2FmWt-rating/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neomaxzero%2FmWt-rating/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neomaxzero","download_url":"https://codeload.github.com/neomaxzero/mWt-rating/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246794206,"owners_count":20834938,"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-12-15T02:33:23.127Z","updated_at":"2025-04-02T10:20:19.150Z","avatar_url":"https://github.com/neomaxzero.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mWt-rating\n\nSimple Auth0 WebTask that persist average points in a mongodb instance\n\n## Why would i use this?\nWebtasks allow us to execute custom server side code from the frontend. This opportunity i did a simple service that saves the average point of a string (...a link/movie/music). It could be useful when you want to implement a star rating system for your blog/portfolio/(your thing).\n\n## WebTask address\nhttps://webtask.it.auth0.com/api/run/wt-maxicespedes7-hotmail_com-0/wt-rating?webtask_no_cache=1\n\n## Input parameters\n * link: string\n * points: number\n\n## Output \nIt returns the average point of the link you want to qualify, if it doesn't exist, its created.\n```\n{\n  \"link\":\"ok\",\n  \"avgPoints\":\"6\",\n  \"quantity\":1,\n  \"_id\":\"5729e96b75c67d01006ed43b\"\n}\n```\n\n\n## Saving one point\nRunning this\n```\nhttps://webtask.it.auth0.com/api/run/wt-maxicespedes7-hotmail_com-0/wt-rating?webtask_no_cache=1\u0026link=https://auth0.com/\u0026points=5\n```\nReturns\n```\n{\n  \"link\":\"https://auth0.com/\",\n  \"avgPoints\":\"5\",\n  \"quantity\":1,\n  \"_id\":\"5729ead140d34b0100604590\"\n}\n```\nFrom now on, futurs points to this link will update the avgPoints.\n\n### Listing every thing rated\nOmiting the \"link\" parameter will give you the list of items rated.\n```\nhttps://webtask.it.auth0.com/api/run/wt-maxicespedes7-hotmail_com-0/wt-rating?webtask_no_cache=1\u0026\n\n[\n  {\"_id\":\"5724f8ebfca0fd7cf0f2cf71\",\n   \"link\":\"www.google.com\",\n   \"avgPoints\":5,\n   \"quantity\":1\n  },\n  {\"_id\":\"5727ca25fca0fd639272fb71\",\n   \"link\":\"facebook\",\n   \"avgPoints\":5,\n   \"quantity\":1\n  }\n]\n```\n\n\n\n## Built With\n\n* [Auth0 WebTask](http://www.webtask.io/)\n* [MLab](https://mlab.com/)\n* Vanilla JS\n* Atom \n* Love \n\n## Future\n* Adding example project\n* async modules\n\n## Authors\n\n* **Céspedes Maximiliano** \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneomaxzero%2Fmwt-rating","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneomaxzero%2Fmwt-rating","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneomaxzero%2Fmwt-rating/lists"}