Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @gridsome/source-ghost with all npm packages installed. Try it out:

var sourceGhost = require("@gridsome/source-ghost")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@gridsome/source-ghost v0.1.0

ghost source for Gridsome

@gridsome/source-ghost

Ghost source for Gridsome. This package is under development and API might change before v1 is released.

Install

  • yarn add @gridsome/source-ghost
  • npm install @gridsome/source-ghost

Usage

module.exports = {
  plugins: [
    {
      use: '@gridsome/source-ghost',
      options: {
        baseUrl: 'http://localhost:2368',
        contentKey: '0b7050113fba7147f358cc2f4d',
        routes: {
          post: '/:year/:month/:day/:slug',
          tag: '/tag/:slug'
        }
      }
    }
  ]
}
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free