nvm use
npm install
npm run start
- Visit
http://localhost:8000
to see site - Visit
http://localhost:8000/__graphql
to see GraphQL interface
To experiment with also making run time queries (see /src/templates/movie.js
)
cd server
npm install
npm start
The server will then be available locally (this is configured on the client in gatsby-browser.js
and gatsby-ssr.js
).
Using Apollo to interact at runtime.
To build production site:
npm run build
Then use deployment tool of your choice. (Note: runtime queries won't work on prod build because that GraphQL server is local)