Skip to content

Lumen CMS - NuxtJs starter template with Lumen CMS enabled module

License

Notifications You must be signed in to change notification settings

lumen-cms/starter-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starter

A Nuxt.js starter project template to set it up with Lumen CMS.

Prerequisites

Make sure to have node 8.0+ and npm 5.0+ installed

Before Installation

Set up backend

  • Head over to Lumen CMS
  • Follow all steps to set up your graph.cool backen
  • Prepare PROJECT_ID

Installation

This is a project template for vue-cli v2 (not v3)

$ vue init lumen-cms/starter-template my-project
# you will be prompted the Project ID and subscription-endpoint of your backend
$ cd my-project                     
# install dependencies
$ npm install # Or yarn install

Make sure to use a version of vue-cli >= 2.1 (vue -V).

Add your endpoint in case you haven't pasted it in the installation prompt

// nuxt.config.js
env:{
  GRAPHQL_PROJECT_ID: 'GRAPH_COOL_PROJECT_ID', // change this
},
'lumen-cms':{
   apollo: {
        clientConfigs: {
          default: {
            httpEndpoint: 'https://api.graph.cool/simple/v1/GRAPH_COOL_PROJECT_ID', // change your data here
            wsEndpoint: null
          }
        }
      }
}

Usage

Development

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

Go to http://localhost:3000

Production

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

Generate

# generate a static project
$ npm run generate

About

Lumen CMS - NuxtJs starter template with Lumen CMS enabled module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 78.4%
  • Vue 21.6%