{"id":20253659,"url":"https://github.com/graphile/livesotope","last_synced_at":"2025-04-10T23:43:26.048Z","repository":{"id":39319402,"uuid":"184574958","full_name":"graphile/livesotope","owner":"graphile","description":"Simple demo of using PostGraphile live queries","archived":false,"fork":false,"pushed_at":"2023-01-10T11:18:00.000Z","size":2452,"stargazers_count":16,"open_issues_count":4,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T23:43:21.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/graphile.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":"2019-05-02T12:14:06.000Z","updated_at":"2023-03-21T11:21:15.000Z","dependencies_parsed_at":"2023-02-08T18:31:40.032Z","dependency_job_id":null,"html_url":"https://github.com/graphile/livesotope","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/graphile%2Flivesotope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphile%2Flivesotope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphile%2Flivesotope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphile%2Flivesotope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphile","download_url":"https://codeload.github.com/graphile/livesotope/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248317726,"owners_count":21083527,"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-14T10:26:46.736Z","updated_at":"2025-04-10T23:43:26.021Z","avatar_url":"https://github.com/graphile.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Livesotope\n\nPostGraphile live queries with animated rankings.\n\n![](./demo.gif)\n\nThe demo inserts 16 \"people\" into a database, and then runs a script\n(`./random.js`) which periodically increases the ranking of one of these people\nby a random amount. We then use Apollo and `react-flip-move` to render the live\nquery of people ordered by ranking.\n\nRead more about PostGraphile live queries [in our docs](https://www.graphile.org/postgraphile/live-queries/).\n\n---\n\nTo install locally, first make sure you have a local PostgreSQL server\ninstalled and [configured to support logical\ndecoding](https://www.graphile.org/postgraphile/live-queries/#graphilesubscriptions-lds)\nby ensuring the following settings are set in `postgresql.conf` (and then\nrestarting PostgreSQL):\n\n```\nwal_level = logical\nmax_wal_senders = 10\nmax_replication_slots = 10\n```\n\n(NOTE: you can determine where your `postgresql.conf` file is by running `psql template1 -c 'SHOW config_file'`)\n\nYou also need to install the `wal2json` PostgreSQL plugin:\n\n```\ngit clone https://github.com/eulerto/wal2json.git\ncd wal2json\nUSE_PGXS=1 make\nUSE_PGXS=1 make install\ncd ..\n```\n\nFinally you need Node v8.6 or higher (v12 recommended) installed; then run:\n\n```\ngit clone https://github.com/graphile/livesotope.git\ncd livesotope\ncreatedb livesotope\npsql -f schema.sql livesotope\nyarn\nyarn dev\n```\n\nThe default `create-react-app` text follows:\n\n---\n\n\nThis project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm start`\n\nRuns the app in the development mode.\u003cbr\u003e\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.\u003cbr\u003e\nYou will also see any lint errors in the console.\n\n### `npm test`\n\nLaunches the test runner in the interactive watch mode.\u003cbr\u003e\nSee the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.\n\n### `npm run build`\n\nBuilds the app for production to the `build` folder.\u003cbr\u003e\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\u003cbr\u003e\nYour app is ready to be deployed!\n\nSee the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.\n\n### `npm run eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can’t go back!**\n\nIf you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.\n\nYou don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.\n\n## Learn More\n\nYou can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).\n\nTo learn React, check out the [React documentation](https://reactjs.org/).\n\n### Code Splitting\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting\n\n### Analyzing the Bundle Size\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size\n\n### Making a Progressive Web App\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app\n\n### Advanced Configuration\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration\n\n### Deployment\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/deployment\n\n### `npm run build` fails to minify\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphile%2Flivesotope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphile%2Flivesotope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphile%2Flivesotope/lists"}