This repository contains the codebase for https://woodwork.javed.dev.
This project was built with GatsbyJS.
This project has ESLint to lint JavaScript and React, and Prettier to format code according to a specified set of rules.
-
Clone this repo.
git clone [email protected]:akhtarja/woodwork.javed.dev.git
-
Start developing.
Navigate into your new site’s folder and start it up.
cd woodwork.javed.dev/ npm install npm run develop
Your site is now running at
http://localhost:4800
.Note: You'll also see a second link:
http://localhost:4800/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.
The deployment process expects two environment variables in the repository's secrets store:
Variable name | Description |
---|---|
WOODWORK_JAVED_DEV_BUCKET_NAME |
The name of the Amazon S3 bucket to deploy to. This bucket should be set up to host a static website |
WOODWORK_JAVED_DEV_CLOUDFRONT_ID |
The distribution ID of the site's Cloudfront distribution. |
AWS_ACCESS_KEY_ID |
The access key ID for a target AWS environment for hosting. |
AWS_SECRET_ACCESS_KEY |
The secret access key for a target AWS environment for hosting. |
The site is hosted in an S3 bucket in AWS, with a CloudFront distribution in front of it. When a pull request is merged to the master
branch, the GitHub Actions pipeline will deploy it to AWS and invalidate the CloudFront distribution cache. This progress can be monitored from the Actions
tab.