Building and Deploying a JAMStack site with Stackbit

Brian Rinaldi - May 6 '19 - - Dev Community

In recent weeks, I've discussed how to start a new site from scratch with Netlify CMS and how to modify an existing site to use Netlify CMS. However, the tooling around JAMStack also continues to improve to where there are tools that are being created to further simplify the process of developing a content managed JAMStack site.

In this post I want to take a look at one of those tools that is currently in an early beta release called Stackbit. As we'll see, the benefit of Stackbit is that you can choose a template and deploy a JAMStack site with CMS integration and deploy this to Netlify, all without touching a single configuration file or writing a single line of code.

Note that I was given access to Stackbit as a beta user, but I am not in any way affiliated with the company nor have I been asked for an endorsement of any sort.

Getting Started with Stackbit

To start off, you'll need to request a beta invite to Stackbit. Once you have that, here's how you get started.

Once you have an account and log in, you'll want to create a new project.

create a new project

You'll want to give it a name or stick with a default and then select a theme. There are a handful of nice, simple themes available in the beta and they each include a live preview. Using a custom theme is an option, but, at the moment, you'll need an additional beta invite to use this feature (however, since this is all deployed to GitHub, you can do whatever with the deployed code after the project is created, including customizing the theme). It's also important to note that you cannot change themes once your project is created.

choosing a theme

Next, you choose which generator you would like to use to build the site. Currently Stackbit supports three of the most popular engines: Jekyll, Gatsby and Hugo. Vuepress and Hexo support is coming soon.

choose an engine

The final choice is a your backend CMS. Once again, Stackbit offers support for the most popular options such as Forestry, Netlify CMS and Contentful. Forestry and Contentful are commercial options that may incur additional costs depending on your requirements. Netlify CMS is free but may not be as full featured as you require depending on your site (for example, Contentful has an API that would allow you to reuse the content on a mobile app). Prismic support is coming soon. You can also choose to have no backend if you prefer.

choose a backend

Once you've made all the choices, all you need to do is connect the relevant accounts. You'll need to connect Github and Netlify at a minimum, although, if using one of the other CMS services, you'll need to connect those as well.

connecting accounts

The site is automatically created, pushed to GitHub, connected to and deployed to Netlify. If you're using Netlify CMS, it will automatically invite you to be an editor.

going live

Next Steps

Congrats, you deployed a fully content-managed JAMStack site!

deployed

At this point, from the Stackbit admin, you can go to the CMS admin or the site, but not much else (other than delete the site on Stackbit, which, I should note, doesn't delete the site on Github or Netlify). However, as I mentioned before, you are free to pull the code from GitHub and customize to your heart's content.

It's still early for Stackbit but it definitely shows some promise as an option for quickly getting a content-managed JAMStack site up and running. I'm looking forward to seeing how they continue to evolve the tool.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player