get started with gatsby code example
Example 1: create gatsby app
gatsby new my-app
Example 2: create new project gatsby
//Create new project
gatsby new [gatsby-project-name] https://github.com/gatsbyjs/gatsby-starter-hello-world
cd [gatsby-project-name]
//initialize developer server
gatsby develop
//create production build the project
gatsby build
gatsby serve
Example 3: how to install new gatsby project locally
gatsby new [SITE_DIRECTORY_NAME] [URL_OF_STARTER_GITHUB_REPO]
gatsby new learning
gatsby new hello-world https://github.com/gatsbyjs/gatsby-starter-hello-world