Gatsby front end for Third and Grove's Drupal 8 backend.
- Node (10.x LTS at time of writing)
- Yarn
- Clone this repository:
git clone [email protected]:thirdandgrove/thirdandgrove-com-gatsby.git
- Change directories into the project root:
cd thirdandgrove-com-gatsby
- Run
yarn
in the project root. - Run
cp sample.env .env
and then modify your new.env
file with the appropriate credentials from theTAGv5 Gatsby/CMS
entry in 1Password.
- In the root of the project, run
yarn start
. - This will perform the initial build and then launch your browser to your local site (the first time you do this, it may take a few minutes).
- Changing files in this state will also hot reload the files
- In the root of the project, run
yarn build
. - The site will be built into the
public
folder of the project root.
- Ensure that you have your dev server running
yarn start
- Run tests with
yarn test
. - If you are developing tests, use
yarn cypress
instead.
This website is built with NodeJS. It uses the React-based open source framework Gatsby. This framework generates a static site.
This website uses Netlify for deployment. Netlify's platform performs automated builds of the static site. It also links to GIT workflow. When a pull request is created it triggers an automated build of the static site that is pinned to the code in that Pull Request.
To deploy code to https://www.thirdandgrove.com/ a content editor has to either trigger a build after a content change or a developer has to push code to the master branch (whether that is a direct commit to master or merging a pull request).
Currently build times range from 45 min to 1 hr.
- Create a pull request with the new code
- Get verification that change is correct from the preview url
- Merging code into master will trigger a production build