Simple Gatsby site that consumes the Apollo API from the https://github.com/miroslawmajka/aws-lambda-apollo-api repository.
- Setup the
.env
file:
cp template.env .env
-
Modify the
GATSBY_APOLLO_URL
variable to point to a deployed GraphQL API. -
Install dependencies and run site locally:
npm install
npm start
- Run deployment to AWS:
npm run deploy
-
Navigate to the site at http://miroslawmajka-gatsby-site.s3-website-eu-west-1.amazonaws.com/.
-
Run clean up the AWS application stack run:
npm run remove