Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pizar/nwl_contentful_client
- Owner: pizar
- Created: 2022-12-04T13:04:55.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-18T08:53:10.000Z (almost 2 years ago)
- Last Synced: 2024-01-10T07:12:34.674Z (10 months ago)
- Topics: client, contentful, graphql
- Language: TypeScript
- Homepage:
- Size: 80.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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);
```