Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perminder-klair/contentful-graphql
Contentful GraphQL allows you to query your data stored in Contentful with GraphQL
https://github.com/perminder-klair/contentful-graphql
api cms contentful expressjs graphql
Last synced: 17 days ago
JSON representation
Contentful GraphQL allows you to query your data stored in Contentful with GraphQL
- Host: GitHub
- URL: https://github.com/perminder-klair/contentful-graphql
- Owner: perminder-klair
- License: mit
- Created: 2018-02-17T18:31:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-02T11:58:44.000Z (almost 4 years ago)
- Last Synced: 2024-12-06T19:36:51.873Z (about 2 months ago)
- Topics: api, cms, contentful, expressjs, graphql
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Contentful GraphQL
Contentful GraphQL allows you to query your data stored in [Contentful](https://www.contentful.com/) with [GraphQL](http://graphql.org/). A schema and value resolvers are automatically generated out of an existing space.
Generated artifacts can be used with any node-based GraphQL server. The outcome of the project's main function call is an instance of the [`GraphQLSchema`](http://graphql.org/graphql-js/type/#graphqlschema) class.
### Run it locally
To run it, clone the repository, install dependencies and start a server:
```
npm install
npm start
```Use to query the data from within your application and navigate to to use the IDE (GraphiQL) for test-querying.
To use your own Contentful space, you have to provide:
- space ID
- CDA token
- CMA tokenPlease refer the ["Authentication" section](https://www.contentful.com/developers/docs/references/authentication/) of Contentful's documentation.
You can provide listed values with env variables:
```
SPACE_ID=some-space-id CDA_TOKEN=its-cda-token CMA_TOKEN=your-cma-token npm start
```