Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

aspect-analytics/strapi-starter-gatsby-blog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strapi Starter Gatsby Blog

Gatsby starter for creating a blog with Strapi.

screenshot image

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!

Features

  • 2 Content types: Article, Category
  • 2 Created articles
  • 3 Created categories
  • Responsive design using UIkit
  • SEO and social media friendly

This starter uses the Strapi blog template

Check out all of our starters here

Pages:

  • "/" to display every articles
  • "/article/:id" to display one article
  • "/category/:id" display articles depending on the category

Getting started

Use our create-strapi-starter CLI to create your project.

# Using Yarn
yarn create strapi-starter my-site gatsby-blog

# Or using NPM
npx create-strapi-starter my-site gatsby-blog

The CLI will create a monorepo, install dependencies, and run your project automatically.

The Gatsby frontend server will run here => http://localhost:8000

The Strapi backend server will run here => http://localhost:1337

Deploying to production

You will need to deploy the frontend and backend projects separately. Here are the docs to deploy each one:

Don't forget to setup the environment variables on your production app:

For the frontend the following environment variable is required:

  • API_URL: URL of your Strapi backend, without trailing slash

Enjoy this starter!

About

Updated version of the first Gatsby starter with much more features

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.2%
  • CSS 4.4%
  • Shell 0.4%