gatsby-theme-randwick v2.0.0-alpha.17
Prismic Gatsby
Sourcing from Prismic (in Gatsby) is explained here.
Prismic Sample has been used to kickstart this project.
Version:
➜ node --version
v11.6.0
➜ npm --version
6.5.0-next.0
Check out an article for a step by step guide to getting this project up and running
Launch this project in your local environment
Create Prismic repo by running the genesis script
Git repo for Genesis (Ask Prabin if you do not have access)
➜ git remote -v
origin https://github.com/pdeka/genesis.git (fetch)
origin https://github.com/pdeka/genesis.git (push)
Run genesis create script to create Prismic repo. For example:
➜ ./create.sh
Usage: -d -g -e <prismic email> -p <prismic password> -r <repository> -t <theme> -c <prismic config> -f <*.toml file name in ./genesis dir>. All file names are relative to the root.
Avoid doing a -d in the options if you do not want to deploy to Netlify. Avoid doing a -g options if you do not want to create a github repo.
For example:
➜ ./create.sh -e xxx@kenekt.com.au -p xxx -r test -t https://github.com/pdeka/mosman -c prismic-configuration.js -f example.toml
Manually change the Prismic config to point to a repo you want eg. kenekttest
➜ cat prismic-configuration.js
module.exports = {
// -- Prismic repository GraphQL endpoint
apiEndpoint: 'https://kenekttest.prismic.io/graphql'
};
Run the following commands:
source .env
npm install
npm start
- Here is a short screen grab on how to get the project started.
- Access the website at http://localhost:8000.
Launching the project in production
Run the following commands to compile the project and launch the server for production:
npm run build
npm run serve
Learn more about using Prismic with Gatsby.js
Creating websites from this repo as a Prismic/Gatsby Theme
See the read me in Genesis
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago