{"id":21326241,"url":"https://github.com/masylum/mobx-rest-example","last_synced_at":"2025-07-12T07:30:27.439Z","repository":{"id":20641278,"uuid":"85508951","full_name":"masylum/mobx-rest-example","owner":"masylum","description":"Example project built with mobx-rest","archived":false,"fork":false,"pushed_at":"2022-12-06T23:14:55.000Z","size":920,"stargazers_count":4,"open_issues_count":12,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T15:42:34.779Z","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/masylum.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}},"created_at":"2017-03-19T21:10:08.000Z","updated_at":"2021-06-29T12:26:57.000Z","dependencies_parsed_at":"2022-07-26T09:32:10.702Z","dependency_job_id":null,"html_url":"https://github.com/masylum/mobx-rest-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/masylum/mobx-rest-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Fmobx-rest-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Fmobx-rest-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Fmobx-rest-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Fmobx-rest-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masylum","download_url":"https://codeload.github.com/masylum/mobx-rest-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Fmobx-rest-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264958135,"owners_count":23689006,"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-11-21T21:08:53.748Z","updated_at":"2025-07-12T07:30:27.159Z","avatar_url":"https://github.com/masylum.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mobx-rest working example\n\nI hacked this little project to show how to\nuse `mobx-rest`.\n\nYou can access the [demo here](https://demo-wiimsnkpdy.now.sh/).\n\nTo build it I did the following:\n\n```\nnpm install -g create-react-app\ncreate-react-app demo\ncd demo\nyarn start\n```\n\nWith this you can have an up and running react app :)\nNext was to install the dependencies:\n\n```\nyarn add mobx\nyarn add mobx-react\nyarn add mobx-rest\nyarn add mobx-rest-fetch-adapter\n```\n\nAfter this I created the 3 stores:\n\n  - users\n  - todos\n  - comments\n\nAnd you are good to go!\n\n## Comments\n\n### API\n\nI'm using [JSON Placeholder](https://jsonplaceholder.typicode.com/) API to\nimplement this example. The API is not persistent, so only one comment can be\nfakely created (always returns id 501).\n\n### Decorators\n\nI highly recommend for your project to use decorators since\nthe API is much more cleaner with them but as I showed in\nthis example, it's not needed to get started.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasylum%2Fmobx-rest-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasylum%2Fmobx-rest-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasylum%2Fmobx-rest-example/lists"}