Kick off your project with this website & 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 website & blog incorporating the CSS-in-JS library Emotion.
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 wensite & blog starter.
# create a new Gatsby site using the blog starter npx gatsby new my-website-blog-starter https://github.com/doakheggeness/gatsby-starter-mdx-website-blog
-
Start developing.
Navigate into your new site’s directory and start it up.
cd my-website-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-website-blog-starter
directory in your code editor of choice and editsrc/pages/index.mdx
. Save your changes and the browser will update in real time!