Skip to content

Murph9/money.murph9.com

Repository files navigation

money.murph9.com

A Gatsby/React statically generated site Deployed to an AWS S3 bucket, with user auth to another S3 bucket file for the data


Environment Setup:


Useful commands (including running the project and deploying to AWS S3)

project root> npm install
project root> gatsby develop

project root> rm public -R
project root> gatsby build
project root> aws s3 sync public/. s3://money.murph9.com --delete

project root> aws cloudfront create-invalidation --distribution-id EDWBAVRGQTLM7 --paths "/*"

https://www.gatsbyjs.org/docs/deploying-to-s3-cloudfront/

Full documentation for Gatsby lives on the website. Here are some places to start:

  • For most developers, we recommend starting with our in-depth tutorial for creating a site with Gatsby. It starts with zero assumptions about your level of ability and walks through every step of the process.
  • To dive straight into code samples, head to our documentation. In particular, check out the Guides, API Reference, and Advanced Tutorials sections in the sidebar.

See terraform folder for the AWS stuff required to output the website from the /public folder resources.