Website for Bell built in Gatsby with React and GraphQL. Use yarn
as your package manager.
fragments
generally single-use components used on just one pageimages
image files of any kindpages
each component defines a new pageshared
constants used throughout the appcomponents
reusable, flexible componentsgatsby-*.js
config filesyarn*
package management files
Be sure that you are using Node version 10.x
. You can check this by running:
node -v
If your node version is not 10.x
, we recommend you use nvm to change your version.
Make sure you have an env.sh
file in the root of your project of the form:
export GOOGLE_MEMBER_SPREADSHEET_ID="..."
To pull in member and news data, you need to get credentials from Google to use the API to pull in data from Google Sheets. Download a credentials.json
file from this site and place them in the root directory of this project. Follow the rest of the instructions on the site as well, being sure to authorize the application using the bellseniorsociety Google account. Then, run:
yarn pull-sheets-data
You may need to take some additional steps per the output of the program in your terminal.
To install dependencies and start the app, run:
$ yarn
$ yarn dev
If there are issues installing packages, which seem out of place (beyond global installs), try:
rm yarn.lock
yarn