{"id":22994860,"url":"https://github.com/scriptype/graphql-presentation-react-apollo","last_synced_at":"2025-06-28T06:36:35.888Z","repository":{"id":148624963,"uuid":"302044721","full_name":"scriptype/graphql-presentation-react-apollo","owner":"scriptype","description":"React-Apollo Layer of GraphQL Presentation","archived":false,"fork":false,"pushed_at":"2020-10-28T22:52:51.000Z","size":1417,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-23T01:38:33.999Z","etag":null,"topics":["apollo","graphql","react"],"latest_commit_sha":null,"homepage":"https://chargin.cf","language":"TypeScript","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/scriptype.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":"2020-10-07T13:27:07.000Z","updated_at":"2020-10-28T22:52:54.000Z","dependencies_parsed_at":"2023-05-20T17:45:45.052Z","dependency_job_id":null,"html_url":"https://github.com/scriptype/graphql-presentation-react-apollo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scriptype/graphql-presentation-react-apollo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptype%2Fgraphql-presentation-react-apollo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptype%2Fgraphql-presentation-react-apollo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptype%2Fgraphql-presentation-react-apollo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptype%2Fgraphql-presentation-react-apollo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scriptype","download_url":"https://codeload.github.com/scriptype/graphql-presentation-react-apollo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scriptype%2Fgraphql-presentation-react-apollo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262388521,"owners_count":23303321,"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":["apollo","graphql","react"],"created_at":"2024-12-15T05:27:38.543Z","updated_at":"2025-06-28T06:36:35.882Z","avatar_url":"https://github.com/scriptype.png","language":"TypeScript","readme":"# React-Apollo\n\n[![Travis build badge](https://api.travis-ci.org/scriptype/graphql-presentation-react-apollo.svg?branch=master)](https://travis-ci.org/github/scriptype/graphql-presentation-react-apollo)\n\nThis is the front-end for [GraphQL Presentation App](https://chargin.cf). Also, [Check out the presentation!](https://slides.com/mustastum/react-graphql)\n\nIn short:\n\n- It talks to a GraphQL API using Apollo to fetch data.\n- UI is implemented using React with hooks and styled-components.\n- Bootstrapped using [Create React App](https://github.com/facebook/create-react-app).\n- Uses eslint, prettier, husky and lint-staged to ensure keeping coding standards intact.\n- It's a read-only UI for demo purposes (manipulating data is not possible).\n- Written in Typescript.\n- It has a Dockerfile, so it can be `docker-compose`d in production.\n\n## Development\n\nI suggest first setting up [Node-GraphQL](https://github.com/scriptype/graphql-presentation-node-graphql) locally.\nBecause you may want the front-end to use it to fetch data during local development.\n\nAfter you set up the Node-GraphQL, clone this repository and run these in the react-apollo directory:\n\n```sh\n# This URL should point to the locally running GraphQL API.\necho \"REACT_APP_GRAPHQL_API_URL=\u003cAPI_URL\u003e\" \u003e .env.local\n\n# Install dependencies\nnpm install\n\n# Start file watchers and dev-server\nnpm start\n\n# In a separate shell, start watching tests\nnpm test\n```\n\nApp should start running at http://localhost:3000.\n\n## Deployment\n\nPushing to master will trigger running a deploy job in Travis. Rest of the process\nis handled by the [Hub](https://github.com/scriptype/graphql-presentation-hub).\n\nIn case you want to deploy this front-end separately, you can run the following\ncommand to build production-ready static assets into build folder:\n\n```sh\n# Before running this, you would need to create an .env.production that will\n# have the graphql api url for the production environment.\nnpm run build\n```\n\n## Further docs\n\n[Create React App](https://github.com/facebook/create-react-app) can be consulted\nfor further documentation.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptype%2Fgraphql-presentation-react-apollo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscriptype%2Fgraphql-presentation-react-apollo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptype%2Fgraphql-presentation-react-apollo/lists"}