The easiest way to start a new project is to use the Gatsby starter. It generates a ready-to-use project with all needed dependencies.
Create your website:
npx gatsby-cli new website https://github.com/gregberge/smooth-doc-starter
Change directories into site folder
Start development server
npm run develop
Gatsby will start a hot-reloading development environment accessible by default at http://localhost:8000.
Try editing the home page in
pages/index.mdx. Saved changes will live reload in the browser.