- Create a site
Use gatsby-cli to bootstrap a new site:
gatsby new my-site https://github.com/sh4hids/gatsby-starter-open-sourcerer
For gatsby v3:
gatsby new my-site https://github.com/sh4hids/gatsby-starter-open-sourcerer.git#gatsby-v3
- Start development server
Navigate to the site directory and start the development server:
cd my-site
gatsby develop
- See the kit in action
Open http://localhost:8000
in your browser to see your site in action or visit http://localhost:8000/___graphql
to check the graphql playground.
- Start hacking
Open the current directory in your favorite code editor and start hacking the kit. All the necessary instructions can be found here.
npm start
ornpm run develop
- will run develop servernpm run build
- will create production buildnpm run serve
- will run the production buildnpm run clean
- will clear cache and other build filesnpm run format
- will format code using prettier