Demo Nuxt/Contentful integration
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets Project files Jun 27, 2018
components Project files Jun 27, 2018
layouts Replaced traditional link with nuxt-link for home page link Jun 29, 2018
middleware
pages
plugins Corrected env example Jun 29, 2018
static Project files Jun 27, 2018
store Fixed await error Oct 22, 2018
.editorconfig Project files Jun 27, 2018
.env.example Corrected env example Jun 29, 2018
.eslintrc.js Project files Jun 27, 2018
.gitignore Project files Jun 27, 2018
README.md Project files Jun 27, 2018
nuxt.config.js
package.json Project files Jun 27, 2018
yarn.lock Project files Jun 27, 2018

README.md

Nuxt & Contentful Demo

Integration of Nuxt and the Contentful Javascript SDK based on the Nuxt community starter template.

Installation

yarn install (or npm if that's your thing).

Getting Started

Duplicate the .env.example file, naming it .env and add your Contentful Space ID and Access Token.

This simple demo gets data from a Contentful Content Type with an API identifier of blogPost and the following four fields assigned to it:

  1. Text (Short text) with the name of Title and the field ID of title
  2. Text (Short text) with the name of Slug and the field ID of slug
  3. Text (Short text) with the name of Description and the field ID of description
  4. Text (Long text) with the name of Content and the field ID of content