Skip to content
My example project of using Nuxt & Contentful together
Vue JavaScript
Branch: master
Clone or download
Latest commit 819fa1f May 31, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea updated readme May 31, 2019
assets initial commit May 31, 2019
components
layouts initial commit May 31, 2019
middleware initial commit May 31, 2019
pages initial commit May 31, 2019
plugins initial commit May 31, 2019
static initial commit May 31, 2019
store initial commit May 31, 2019
.editorconfig initial commit May 31, 2019
.eslintrc.js initial commit May 31, 2019
.gitignore added to .gitignore May 31, 2019
README.md updated readme May 31, 2019
nuxt.config.js initial commit May 31, 2019
package-lock.json initial commit May 31, 2019
package.json initial commit May 31, 2019

README.md

nuxt-contentful-demo

Nuxt.js project

Build Setup

# Create a contentful.json in root
For this project to work, you will need to setup a config file.
This should hold something like this:
{
  "CTF_SPACE_ID": "YOURSPACEID",
  "CTF_CDA_ACCESS_TOKEN": "YOURACCESSTOKEN",
  "CTF_ENVIRONMENT": "master"
}

# install dependencies
$ npm install # Or yarn install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm start

# generate static project
$ npm run generate

For detailed explanation on how things work, checkout the Nuxt.js docs.

You can’t perform that action at this time.