Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pizar/nwl_contentful_client


https://github.com/pizar/nwl_contentful_client

client contentful graphql

Last synced: about 6 hours ago
JSON representation

Awesome Lists containing this project

README

        

> the project still in working,

# nwl_contentful_client
Simple client implementation for contentful.
The test project birth with this test purpose: _create a node module and use it into a larger project._

**Table of Contents**
[TOC]

## Install
```shell
npm install nwl_contentful_client
```

## Use
Create (or add to) your `.env` file. Below the variables needed from the system:
- CONTENTFUL_SPACE_ID
- CONTENTFUL_ACCESS_TOKEN=
- CONTENTFUL_PREVIEW_ACCESS_TOKEN=

then...
```node
import {ContentfulClient} from "nwl_contentful_client";

const client = new ContentfulClient();
const entries = await client.query(graphql);
```