This article has been updated on 23rd February 2021.
Gatsby starter for creating a blog with Strapi.
This starter allows you to try Strapi with Gatsby with the example of a simple blog. It is fully customizable and due to the fact that it is open-source, fully open to contributions. So do not hesitate to add new features and report bugs!
You can see a live preview of this starter just right here.
The easiest way to try this starter is to run it locally on your computer.
Create a Strapi project named
backend using the blog template:
# Using Yarn yarn create strapi-app backend --template https://github.com/strapi/strapi-template-blog # Or using NPM npx create-strapi-app backend --template https://github.com/strapi/strapi-template-blog
The Strapi server will automatically start and import sample seed data.
Clone the frontend part:
git clone https://github.com/strapi/strapi-starter-gatsby-blog.git frontend
Leave the Strapi backend running in the background. Open another terminal tab, and make sure you're in the
Install dependencies and start the Gatsby server:
# Using yarn yarn install yarn develop # Using npm npm install npm run develop
If you want to change the default environment variables, create a
.env file like this:
cp .env.example .env
The Gatsby server will run here => http://localhost:3000
Enjoy this starter!
Maxime started to code in 2015 and quickly joined the Growth team of Strapi. He particularly likes to create useful content for the awesome Strapi community. Send him a meme on Twitter to make his day: @MaxCastres