Quickly get started using the Gatsby notes theme! This starter creates a new Gatsby site that is preconfigured to work with the official Gatsby notes theme.
-
Create a Gatsby site.
Use the Gatsby CLI to create a new site, specifying the notes theme starter.
# create a new Gatsby site using the notes theme starter gatsby new my-themed-notes https://github.com/gatsbyjs/gatsby-starter-notes-theme
-
Start developing.
Navigate into your new site’s directory and start it up.
cd my-themed-notes/ gatsby develop
-
Open the code and start customizing!
Your site is now running at
http://localhost:8000
!To get started, check out the guide to using a Gatsby theme, or the longer, more detailed tutorial.
Deploy this starter with one click on Gatsby Cloud:
Here are the top-level files and directories you'll see in a site created using the notes theme starter.
gatsby-starter-notes-theme
├── content
│ └── notes
│ ├── example-dir
│ │ └── hi.mdx
│ └── hello.mdx
├── .gitignore
├── .prettierrc
├── gatsby-config.js
├── LICENSE
├── package-lock.json
├── package.json
└── README.md
-
/content
: A content folder holding assets that the theme expects to exist. In this case, you're starting with some example notes! Delete the notes contained in/content/notes
and start writing your own! -
.gitignore
: This file tells git which files it should not track / not maintain a version history for. -
.prettierrc
: This file tells Prettier which configuration it should use to lint files. -
gatsby-config.js
: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you’d like to include, etc. When using themes, it's where you'll include the theme plugin, and any customization options the theme provides. -
LICENSE
: This Gatsby starter is licensed under the 0BSD license. This means that you can see this file as a placeholder and replace it with your own license. -
package-lock.json
(Seepackage.json
below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. (You won’t change this file directly). -
package.json
: A manifest file for Node.js projects, which includes things like metadata (the project’s name, author, etc). This manifest is how npm knows which packages to install for your project. -
README.md
: A text file containing useful reference information about your project.
Looking for more guidance? Full documentation for Gatsby lives on the website.
Here are some places to start:
- To learn more about Gatsby themes specifically, we recommend checking out the theme docs.
-
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 Reference Guides and Gatsby API sections in the sidebar.