Skip to content

cbaxter713/nuxt-prismic-template

Repository files navigation

nuxt-prismic-template

A Basic Nuxt project with Prismic headless CMS integration.

Prerequisites

Nuxt requires your base node version to be at least 8.0. We recommend using nvm to manage the node versions on your machine. Learn how to install nvm if you don't already have it.

Build Setup

# install dependencies
$ npm 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

# deploy project to heroku
$ npm run deploy:heroku

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

Documentation

This project uses Vue Styleguidist for component documentation.

To run the component style guide locally, simply run: npm run styleguide

All relevant components automatically have their Vue props documented by name, type and required attributes. When adding any components it is strongly recommended that you add additional documentation for basic descriptions, events, examples, etc.

For more information on how to document your single file components, go here

Troubleshooting

Sometimes the global node-sass setup on your machine can go awry. If you try running the project and encounter errors related to node-sass, run the following command to clear up that issue: npm rebuild node-sass

About

A NuxtJS base project setup with Prismic CMS integration, and component/routing setup for basic brochure site.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published