Skip to content
πŸš€βš‘οΈ Blazing fast blog built using Gatsby that utilizes the power of Cosmic JS πŸ”₯
JavaScript
Branch: master
Clone or download
Latest commit 54f0f35 Oct 4, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Updated to gatsby v2 Oct 3, 2018
static
.eslintrc.js Initial Version May 23, 2018
.gitignore Initial Version May 23, 2018
.prettierrc Initial Version May 23, 2018
.travis.yml
LICENSE Initial Version May 23, 2018
README.md Update README.md Oct 2, 2018
gatsby-config.js start edit Jun 5, 2018
gatsby-node.js
package-lock.json Updated to gatsby v2 Oct 3, 2018
package.json

README.md

Gatsby + Cosmic JS

gatsby-blog-cosmicjs

This repo contains an example blog website that is built with Gatsby, and Cosmic JS.

See live demo hosted on Netlify

Uses the Cosmic JS Gatsby Source Plugin

Prerequisites

  • Node (I recommend using v8.2.0 or higher)
  • Gatsby CLI

Install

# Make sure that you have the Gatsby CLI program installed
npm install --global gatsby-cli

# run from your CLI
gatsby new gatsby-example-blog https://github.com/jazibsawar/gatsby-blog-cosmicjs

In gatsby-config.js you need to add configuration for your Cosmic JS Bucket

{
  resolve: 'gatsby-source-cosmicjs',
  options: {
    bucketSlug: '', /* bucket slug */
    objectTypes: ['posts', 'settings'], /* object slugs you want to populate */
    apiAccess: {
      read_key: '', /* optional */
    }
  }
},

Then

# Then you can run it by
cd gatsby-example-blog
npm run develop
You can’t perform that action at this time.