-
Run dev server
Navigate into your new site’s directory and start it up.
cd my-blog-starter/ npm run develop # Your site is now running at http://localhost:8000
-
Open the source code and start editing!
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-blog-starterdirectory in your code editor of choice and editsrc/pages/index.js. Save your changes and the browser will update in real time! -
Deploy ✨
The website is hosted with Firebase.
# build prod assets npm run build # serve prod assets npm run serve # Checkout http://localhost:9000/, # then stop the server and push to prod! npm run deploy
Looking for more guidance? Full documentation for Gatsby lives on the website. Here are some places to start:
-
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 Guides, API Reference, and Advanced Tutorials sections in the sidebar.