Skip to content

virtual/til

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

No packages published