-
Create a Gatsby site.
Use the Gatsby CLI to create a new site, specifying the default starter.
# create a new Gatsby site using the default starter npx gatsby new my-default-starter
-
Add theme config.
Navigate into your new siteβs directory edit gatsby-config.js and add the following code.
module.exports = { __experimentalThemes: [ "gatsby-theme-blog", ], }
-
Start your Gatsby site.
Use the Gatsby CLI to create a new site, specifying the default starter.
# create a new Gatsby site using the default 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-default-starter
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.
.
βββ src/components/atoms
βββ src/components/molecules
βββ src/components/organisms
βββ src/components/templates
βββ src/nucleon
βββ src/nucleon/settings
βββ src/pages