{"id":15143773,"url":"https://github.com/contentful/the-example-app.graphql.js","last_synced_at":"2025-09-29T12:31:09.865Z","repository":{"id":33838283,"uuid":"147492164","full_name":"contentful/the-example-app.graphql.js","owner":"contentful","description":"Example app for Contentful with GraphQL with React","archived":true,"fork":false,"pushed_at":"2023-01-18T12:41:27.000Z","size":4448,"stargazers_count":19,"open_issues_count":24,"forks_count":10,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-09-27T10:03:57.630Z","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/contentful.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":"2018-09-05T09:19:45.000Z","updated_at":"2023-08-21T06:39:43.000Z","dependencies_parsed_at":"2023-02-10T15:00:17.156Z","dependency_job_id":null,"html_url":"https://github.com/contentful/the-example-app.graphql.js","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/contentful%2Fthe-example-app.graphql.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful%2Fthe-example-app.graphql.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful%2Fthe-example-app.graphql.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful%2Fthe-example-app.graphql.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/contentful","download_url":"https://codeload.github.com/contentful/the-example-app.graphql.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234619456,"owners_count":18861456,"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-09-26T10:03:49.658Z","updated_at":"2025-09-29T12:31:04.520Z","avatar_url":"https://github.com/contentful.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e **Note**: This repo is no longer officially maintained as of Jan, 2023.\n\u003e Feel free to use it, fork it and patch it for your own needs.\n\nThis project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).\n\n## The Graphql and JS example app\n\nThe graphql js example app teaches the very basics of how to work with Contentful:\n\n- consume content from the Contentful Delivery and Preview APIs\n- model content\n- edit content through the Contentful web app\n\nThe app demonstrates how decoupling content from its presentation enables greater flexibility and facilitates shipping higher quality software more quickly.\n\n\u003ca href=\"https://the-example-app-nodejs.herokuapp.com/\" target=\"_blank\"\u003e\u003cimg src=\"https://images.contentful.com/qz0n5cdakyl9/4GZmvrdodGM6CksMCkkAEq/700a527b8203d4d3ccd3c303c5b3e2aa/the-example-app.png\" alt=\"Screenshot of the example app\"/\u003e\u003c/a\u003e\n\n## What is Contentful?\n\n[Contentful](https://www.contentful.com) provides a content infrastructure for digital teams to power content in websites, apps, and devices. Unlike a CMS, Contentful was built to integrate with the modern software stack. It offers a central hub for structured content, powerful management and delivery APIs, and a customizable web app that enable developers and content creators to ship digital products faster.\n\n## Requirements\n\n* Node 8\n* Git\n\nWithout any changes, this app is connected to a Contentful space with read-only access. To experience the full end-to-end Contentful experience, you need to connect the app to a Contentful space with read _and_ write access. This enables you to see how content editing in the Contentful web app works and how content changes propagate to this app.\n\n## Common setup\n\nClone the repo and install the dependencies.\n\n```bash\ngit clone https://github.com/contentful/the-example-app.graphql.js.git\ncd the-example-app.graphql.js\n```\n\n```bash\nnpm install\n```\n\n## Steps for read-only access\n\nTo start the express server, run the following\n\n```bash\nnpm start\n```\n\n[http://localhost:3000](http://localhost:3000) should open automatically; take a look around.\n\n\n## Deploy to Heroku\nYou can also deploy this app to Heroku:\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n\n## Setup for Introspection Fragment Matcher\n\nBecause we create fragments over union types in this project, we need to use an IntrospectionFragmentMatcher. This fragment matcher needs to understand a bit more about our schema in order to\nfunction properly. We use a script to extract the schema and store it in a JSON file. This file is imported when the fragment matcher is constructed. The schema json is included in the project, but may need to be re-exported if the schema changes. You can do this with `npm run fragmentTypesScript`. More information about this script and fragment matchers can be found in the Apollo Client documentation [here](https://www.apollographql.com/docs/react/advanced/fragments.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontentful%2Fthe-example-app.graphql.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontentful%2Fthe-example-app.graphql.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontentful%2Fthe-example-app.graphql.js/lists"}