{"id":19154051,"url":"https://github.com/thinkswan/react-comments","last_synced_at":"2025-02-22T21:22:00.329Z","repository":{"id":139998923,"uuid":"194241374","full_name":"thinkswan/react-comments","owner":"thinkswan","description":"A React app that allows visitors to post comments.","archived":false,"fork":false,"pushed_at":"2019-06-28T08:55:59.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-03T19:24:06.835Z","etag":null,"topics":["express","javascript","react","tutorial"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"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/thinkswan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-06-28T08:55:50.000Z","updated_at":"2019-06-28T18:07:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"48d01c19-e41b-4e79-b801-150a965fd079","html_url":"https://github.com/thinkswan/react-comments","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/thinkswan%2Freact-comments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkswan%2Freact-comments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkswan%2Freact-comments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinkswan%2Freact-comments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinkswan","download_url":"https://codeload.github.com/thinkswan/react-comments/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240237874,"owners_count":19769827,"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":["express","javascript","react","tutorial"],"created_at":"2024-11-09T08:25:17.803Z","updated_at":"2025-02-22T21:22:00.303Z","avatar_url":"https://github.com/thinkswan.png","language":"JavaScript","readme":"# react-comments\n\nA React app that allows visitors to post comments.\n\nBased on the tutorial found at\nhttp://facebook.github.io/react/docs/tutorial.html.\n\n## How to use\n\n```\ngit clone git@github.com:thinkswan/react-comments.git\nmv comments.json-example comments.json\nnpm install\nnpm start\n```\n\nThis will start a server at http://localhost:5000/.\n\n## How it works\n\nThe server (`server.js`) runs an Express app that exposes two routes:\n\n1. `GET /comments.json`: Parse the `comments.json` file and render its contents\n1. `POST /comments.json`: Write a new comment to the `comments.json` file\n\nThe client (`public/js/app.js`) is a React app that polls for changes to the\n`comments.json` file on the server and updates the UI via React's `setState()`\nmethod.\n\nState is maintained by storing previous comments in the `comments.json` file.\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkswan%2Freact-comments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinkswan%2Freact-comments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinkswan%2Freact-comments/lists"}