tinacms-contentful-root
v0.2.0
Published
This package provides helpers for setting up TinaCMS to use the Contentful API as well as user authentication with Contentful.
Downloads
3
Readme
react-tinacms-contentful
This package provides helpers for setting up TinaCMS to use the Contentful API as well as user authentication with Contentful.
Pre-requisites
To use this plugin, the following is expected:
- You have a working application with TinaCMS already setup
- You have setup OAuth applications with Contentful if you plan to have your users authenticate with Contentful
Installation
npm install --save react-tinacms-contentful contentful contentful-management
# or
yarn add react-tinacms-contentful contentful contentful-management
Getting started
There are three different approaches to using Contentful with TinaCMS, depending on your application's configuration:
- Client-side with OAuth user authentication, which allows users of your Contentful organization to login to their account to edit the content with Tina that they are allowed to access in Contentful.
- Client-side with personal access-token-based authentication, which allows you to access the delivery API or preview API to render content client-side, or preview draft content.
- Serverless with access-token-based authentication, which allows you to access the delivery API or preview API to build your application or preview draft content, and the management API to write changes back to contentful as the system instead of as a user.