Skip to content

nickycdk/nuxt-contentful-example

Repository files navigation

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.

About

My example project of using Nuxt & Contentful together

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published