Description of what Red Box is and does. Reference diagram.
Red Box uses these libraries:
- Gatsby
- Reach Router (included with Gatsby)
- Theme UI
- React Icons
Useful commands:
yarn clean- Deletes cached content and settings. If you make changes to any of thegatsby-*.jsfiles in the root directory, you probably want to run this.yarn develop- Starts a live development server at http://localhost:8000 that hot loads changes to code. While the development server is running there is also a GraphQL testing tool available at http://localhost:8000/___graphql.yarn build- Creates a static build of the site.yarn serve- Starts a server at http://localhost:9000 using the last result ofyarn buildyarn test- Runs unit tests once.yarn watch- Runs unit tests and watches for changes and reruns tests as changes are detected. It also prints out coverage information.yarn lint- Run eslint on project to find formatting and syntax issues.yarn deploy- Copies the build to the s3 bucket in .env.*
- Assume an aws role that can access the keys at the path set in ./scripts/setup-development.sh
- Call ./scripts/setup-development.sh
- yarn develop
From then on until the keys expire you can just call yarn develop
- Call ./scripts/setup-development.sh
This will reset all the keys to the ones in .env.development-example