Kick off your project with this Gatsby blog boilerplate. This starter ships with the main Gatsby configuration files you might need to get up and running including a configuration file for CI/CD with Azure Pipelines.
Have another more specific idea? You may want to check out our vibrant collection of official and community-created starters.
-
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 gatsby new azure-pipelines-blog https://github.com/marcysutton/gatsby-azure-pipelines-blog
-
Start developing.
Navigate into your new siteβs directory and start it up.
cd azure-pipelines-blog/ 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
azure-pipelines-blog
directory in your code editor of choice and editsrc/pages/index.js
. Save your changes and the browser will update in real time!
A quick look at the top-level files and directories you'll see in a Gatsby project.
.
βββ node_modules
βββ src
βββ azure-pipelines.yml
βββ .gitignore
βββ .prettierrc
βββ gatsby-browser.js
βββ gatsby-config.js
βββ gatsby-node.js
βββ gatsby-ssr.js
βββ LICENSE
βββ package-lock.json
βββ package.json
βββ README.md
To learn more about the default file structure common to most Gatsby sites, check out the docs: https://www.gatsbyjs.org/docs/gatsby-project-structure/
Looking for more guidance? Full documetation for Gatsby lives on the website. Here are some places to start:
-
For most developers, we recommend starting with our in-depth tutorial for creating a site with Gatsby. It starts with zero assumptions about your level of ability and walks through every step of the process.
-
To dive straight into code samples, head to our documentation. In particular, check out the Guides, API Reference, and Advanced Tutorials sections in the sidebar.