Re:Ghost Blogging Platform can now be used as a headless CMS
by johnonolan on Wednesday January 09, 2019 @04:56PM
(#18869355)
Sure thing! I Gatsby generates static HTML files from 1 or more data sources, which can be a filesystem or an API. When a Gatsby build runs, as long as it can access the API in question, then it can pull the content needed to generate a build. Once that build is completed, the resulting directory can essentially just be dragged and dropped (literally, in the case of Netlify) onto a hosting platform.
You can absolutely run all of these things locally and have no code running in production at all, if that's what you want to do!
The benefit of having your content API in production is that it can be accessed from anywhere, by anything - which opens up a lot more usecases.
Best way to get a handle on it all is to play with the starter repo, which should be fairly easy to get up and running: https://github.com/tryghost/gatsby-starter-ghost
Do you have any resources you can point to that explains like I'm 5 where Ghost ends and Gatsby starts? Most of my dev life lately has been CraftCMS and Laravel but I'm convinced that some variety of serverless is where everything is headed.
Thanks in advance!