Update: As of June 2021 this codebase is now retired. The campus has since moved to an all in one CMS solution from Terminal Four.
The CSUMB website is made up of lots of little pieces. This repository includes all the code we use to pull those pieces together into a single, cohesive site using Gatsby.
Need help with your campus website? Get in touch with web services.
8.11
, and less than version 11
.npm i
to setup and install all the node dependencies.npm install --global gatsby-cli
~/.bash_profile
(create it if you don't have it):
export GITHUB_TOKEN='[github username]:[token]';
gatsby develop
to run gatsby locallynpm run storybook
to run the Storybook locallynpm run test
to confirm that all tests pass before making commitsjest -u
to update snapshots, only needed if tests fail because you changed the layout of a component.The environment variables defined in Netlify are required for builds to work.
There are a few special URLs or queries that do special things:
_login
query to any URL will force the local cache of the user object to flush and re-fetch the user's data from Okta.