Web site for: http://productmindset.com
Currently deployed to: https://product-mindset.netlify.com/
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
npm (or yarn) - https://www.npmjs.com/ or https://yarnpkg.com/en/
Note: npm
and yarn
commands can generally be run interchangeable. For example:
npm install
or
yarn install
yarn
commands will be used in this readme for brevity
yarn install
Having the Gatsby CLI program installed can also be helpful:
yarn global add gatsby-cli
The following will run a local development instance:
yarn develop
The following will run a local production instance:
yarn build
gatsby serve
The following commands are run durng the automated build and are required to be completed successfully.
yarn lint
yarn build
yarn test
They can be run locally to resolve any build issues.
Preview deploys are available from Netlify
on each branch / pull request. Note that CMS Admin functionality is not available on these previewes.
There are several additional automation checks run on branches. Some may be helpful.
Netlify CMS options are configured in /static/admin/config.yml
.
Note the following section:
backend:
name: git-gateway
branch: master
repo: product-mindset/site
publish_mode: editorial_workflow
The following will allow for using a local in-memory version of the CMS backend (useful for local development)
backend:
name: test-repo
And remove:
branch: master
repo: product-mindset/site
publish_mode: editorial_workflow
Note that the test-repo backend does not (currently) support using the editorial_workflow
.
Modifying these settings locally should allow for a useful CMS development environment.
Merges to master
will automatically be deployed.
The default Gatsby starter converted to TypeScript.
For an overview of the project structure please refer to the Gatsby documentation - Building with Components
Install the original starter (assuming Gatsby is installed) by running from your CLI:
gatsby new gatsby-starter-typescript https://github.com/haysclark/gatsby-starter-typescript