VIDEO: From Markdown to Cosmic JS with Gatsby


The beauty of using a static site generator is that your back end can be completely separated from your front end. You can easily swap it out at any time no questions asked, and that's exactly what I did with Learn Build Teach. I went from markdown files to a true headless CMS in Cosmic JS for my courses information.


The Why

Why would I want to make this shift you might ask? Well, by completely decoupling my front end and backend, it gives me some flexibility. I have the ability to swap out my backend at any time as I mentioned. But also, it gives me the ability to leverage that data on multiple different front end applications. 


Additionally (and this is the big sell for Cosmic JS), if I am going to have non developers contributing to my content, they get an easy to use GUI to update information. Writing markdown files isn't extremely difficult, but it certainly can be tricky for people that are new to it. With Cosmic JS, anyone with access can easily create/update content in a comfortable environment!






Was this article helpful?

Thank you! Your input helps us improve our articles and resources. If you have any other questions or comments, please contact support.

You may also like


An Object in Cosmic JS can be a page, a blog post, an author or anything you want it to be. Cosmic JS gives you the freedom to create and manage content openly and create your own data structure. Each Object allows for the creation of a title, slug, content and Metafields.
In this tutorial, I'm going to show you how to create a minimalistic but awesome single page app blog using Vue, Vuex, Vuetify, Cosmic JS and deploy it to Netlify.
In this video tutorial, I show you how to use the Cosmic CLI to install and deploy a Cosmic JS GraphQL-powered App in 5 minutes.
Salesforce is the world’s leading enterprise CRM application. Zapier gives people internet superpowers by allowing them to connect and automate the apps they use. Using Zapier to connect your Cosmic-powered content with Salesforce is easy and requires zero coding.
Build a fully functioning messenger that can send SMS messages to application users. We will discuss Server side rendering of a React front, and leveraging a simple api in order to make protected requests to Cosmic JS cloud services.
Our digital world is being built on top of API services. And Webhooks are the operators that enable these API services to communicate with each other.