Integration of Nuxt and the Contentful Javascript SDK based on the Nuxt community starter template.
yarn install
(or npm if that's your thing).
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:
- Text (Short text) with the name of Title and the field ID of title
- Text (Short text) with the name of Slug and the field ID of slug
- Text (Short text) with the name of Description and the field ID of description
- Text (Long text) with the name of Content and the field ID of content