-
Setup
Download Node. https://nodejs.org/en/download/
npm config set legacy-peer-deps true # install npm npm install sudo npm install -g gatsby-cli npm run build
-
Start developing.
Navigate into SKYPOINT directory and start it up.
cd SKYPOINT/ gatsby develop
-
Open the source code and start editing!
SKYPOINT is now running at
http://localhost:8000
!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 SKYPOINT directory in your code editor of choice and edit
src/pages/index.js
. Save your changes and the browser will update in real time! -
.env File for Prismic Variable
GATSBY_PRISMIC_REPOSITORY_NAME_DEV = [Repository Name] GATSBY_PRISMIC_REPOSITORY_NAME_UAT = [Repository Name] GATSBY_PRISMIC_REPOSITORY_NAME_PROD = [Repository Name]
GATSBY_PRISMIC_CUSTOM_TYPES_API_TOKEN_DEV = [Token] GATSBY_PRISMIC_CUSTOM_TYPES_API_TOKEN_UAT = [Token] GATSBY_PRISMIC_CUSTOM_TYPES_API_TOKEN_PROD = [Token]
ENABLE_GATSBY_REFRESH_ENDPOINT = true
// Refresh api connection [local] // curl -X POST http://localhost:8000/__refresh