$ npm install
Create a file called .env.development
at the root of your project. Examples of what it should contain can be found in .env.example
. If you want to locally build your project you’ll also have to create .env.production
file. Gatsby keeps track of when to use which file.
During development use the develop
script. Your site is now running at http://localhost:8000
! 🎉
npm run develop
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.
The stack consists of Gatsby, a React-based, GraphQL powered, static site generator. Content is being fetched from the headless CMS Prismic.io. The project is using a PostCSS plugin to transforms extended syntaxes and features into modern, browser-friendly CSS.
To generate static files in the simplest way, write:
npm run build
Then in the public directory will be files to copy to the server. Additional actions may be required depending on which server you use. For more information, visit Preparing a Site for Deployment.