Building a Shopify Powered Blog with Contentful Webhooks and Micro

Kevin Green
Dec 11, 2017 · 9 min read

What we’re using


'/blogs/passport/:slug': ({ slug }) => {
   const cached = stories.get(slug)   if (cached) {
     return true
   }   return api.getEntries({
     content_type: 'passports',
     'fields.slug': slug,
     include: 8
   }).then(({ items }) => {
     stories.set(slug, items[0].fields)
     stories.emit('updated')
     return true
   })
}

The Basics

Setting up our Microservice

Basic configuration for webhooks and contentful

Time to get Jazzy — Cleaning the data and pushing to Shopify

URL structure in Shopify Admin


Hosting your service

Taking it even further

Enjoy ~

The Couch

This isn't where I left my website

Kevin Green

Written by

Lead Web Engineer & Co-Founder at The Couch

The Couch

The Couch

This isn't where I left my website