Contentful Gazette: bidirectional real-time content management and delivery
bidirectional real-time content management and delivery
This application was produced during a hackathon. It's a quick Proof of Concept created in 8h. It's not ready to be used in production.
localStorage
to cache versions received with the sync channelNever ever give your CMA token away to applications you don't trust. Contentful Gazette will store your CMA token in-memory only until the browser tab is closed. You can verify what we do with your token by studying the code of src/contentful.js.
article
consisting of 3 fields: title
, lead
, content
(see below)npm install
npm run build-dev
npm run deploy-gh
edit this website
ribbon on the top left corner of gazette and paste your Content Management API token{
"name": "article",
"description": "Contentful Gazette article",
"displayField": "title",
"fields": [
{
"name": "title",
"id": "title",
"type": "Symbol",
"localized": false,
"required": false,
"disabled": false,
"omitted": false,
"validations": []
},
{
"name": "lead",
"id": "lead",
"type": "Symbol",
"localized": false,
"required": false,
"disabled": false,
"omitted": false,
"validations": []
},
{
"name": "content",
"id": "content",
"type": "Text",
"localized": false,
"required": false,
"disabled": false,
"omitted": false,
"validations": []
}
],
"sys": {/* redacted */}
}
First you have to compose your publish URL. Refer the PubNub documentation:
https://pubsub.pubnub.com/publish/{pub_key}/{sub_key}/0/articles/0?store=1
Then this URL should be used for as a Contentful webhook. Please note it should be triggerd only on entry publication.
This project won the 2017 Winter Hackathon at Contentful.
Contributors: