This repository host source code for Sophie Winchester Healthy Living website. Site uses gatsby-source-drupal
to pull data from Drupal CMS hosted on an AWS EC2 instance with JSON:API extension and uses gatsby-source-youtubev2
to pull data from clients YouTube channel using clients API key. Site also uses Auth0 to protect content and manage user accessibility to content.
- GatsbyJS
git clone https://github.com/bmw2621/sophieSite.git
yarn
- Create .env.development filter
- In .env.development create variable
YOUTUBE_API
with API keygatsby develop
Navigate tohttp://localhost:8000
- Ensure .env.production has environment variable
YOUTUBE_API
with API keygatsby build && gatsby serve
Navigate tohttp://localhost:9000
Todo: Add instructions for deployment to Netlify
Todo: Configure Build Hooks on Drupal instance to rebuild upon each new article position
Todo: Configure Netlify to rebuild daily to pull in new Youtube posts