Gatsby
is a free and open source framework based onReact
that helps developers build blazing fast websites and apps.
-
Install the Gatsby CLI.
npm install -g gatsby-cli
-
Create a Gatsby site from a Gatsby starter.
Get your Gatsby blog set up in a single command:
# create a new Gatsby site using the default starter gatsby new my-blazing-fast-site
-
Start the site in develop mode.
Next, move into your new site’s directory and start it up:
cd my-blazing-fast-site/ gatsby develop
-
Open the source code and start editing!
Your site is now running at
http://localhost:8000
. Open themy-blazing-fast-site
directory in your code editor of choice andedit src/pages/index.js
. Save your changes, and the browser will update in real time!
.
├── .editorconfig
├── .gitignore
├── .np-config.json
├── LICENSE
├── package.json
└── README.md