Skip to content

c0nst4ntin/prismic-nuxt

Repository files navigation

prismic-nuxt

License

A simple boilerplate using @prismicio & @nuxt

This Nuxt.js & Prismic.io boilerplate contains all the features and scripts you need to start developing websites using Nuxt.js and the Headless CMS Prismic.io.

Getting Started

Nuxt Setup

# install dependencies
$ npm run install

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

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

# generate static project
$ npm run generate

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

API Endpoint

In the ./nuxt.config.js file you need to fill in your API Endpoint.

/*
** Prismic configuration
*/
prismic: {
  endpoint: 'https://your-prismic-endpoint.cdn.prismic.io/api/v2',
  ...
},