Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

virtual/til

Open more actions menu

Repository files navigation

Today I Learned

A project for pulling latest posts using Contentful

Prerequisites

  • Node v4.7.2 or greater

Start the project

1️⃣ Clone the project using the following command:

git clone https://github.com/contentful/boilerplate-javascript.git

2️⃣ Install dependencies and start it:

npm install && npm start

Dev

.env file:

CONTENTFUL_SPACE_ID=<spaceid>
CONTENTFUL_ACCESS_TOKEN=<accesstoken>

npm install from root

npm install from public/

nodemon index.js from root

npm start from public/

Contentful notes

Contentful's Rich Text field has an official React renderer specifically for this purpose that handles all the different node types (paragraphs, blockquotes, headings, links, etc.)

For detailed implementation guide, see: Contentful Reference

About

Today I Learned... using Contentful

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.