Kick off your project with this blog boilerplate. This starter ships with the main Gatsby configuration files you might need to get up and running blazing fast with the blazing fast app generator for React, with support for an MDX blog.
Have another more specific idea? You may want to check out this awesome collection of official and community-created starters.
What's MDX you ask? MDX let's you use JSX in your Markdown, making it even easier to write blog posts, document your React components, and much more. Find out more about MDX, and gatsby-mdx, the plugin that makes this blog possible!
-
Create a Gatsby site.
Use the Gatsby CLI to create a new site, specifying the blog starter.
# create a new Gatsby site using the blog starter npx gatsby new my-blog-starter https://github.com/hagner/gatsby-starter-blog-mdx
-
Start developing.
Navigate into your new site’s directory and start it up.
cd my-blog-starter/ gatsby develop
-
Open the source code and start editing!
Your site is now running at
http://localhost:8000
!Note: You'll also see a second link:
http://localhost:8000/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.Open the
my-blog-starter
directory in your code editor of choice and editsrc/pages/index.js
. Save your changes and the browser will update in real time!