GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - commitdev/zero-static-site-gatsby: Deployable zero module, contains a landing page built with Gatsby.

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
scripts
scripts
 
 
templates
templates
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
LICENSE.info
LICENSE.info
 
 
LICENSE.spdx
LICENSE.spdx
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
zero-module.yml
zero-module.yml
 
 

Repository files navigation

Zero Static Site - Gatsby

This is a Zero module which sets up a Gatsby site bundled and statically served through CloudFront and S3 from the zero-aws-eks-stack.

The /templates folder is meant to be filled in via Zero create step and results in Simple Gatsby getting started application. It also contains a simple CircleCI pipeline which defines how to build and deploy the service.

This repository is business-logic agnostic; mainly showcasing some universal best practices:

  • Creating an optimized build of your Gatsby landing page.
  • Out of the box CI/CD workflow using CircleCi.
    • testing
    • building your Gatsby site as a static distribution in /public folder.
    • syncs the built bundle to AWS S3.
    • invalidates existing Cloudfront cached version.

Repository structure

/   # file in the root directory is for initializing the user's repo and declaring metadata
|-- Makefile                         # make command triggers the initialization of repository
|-- zero-module.yml                  # module declared required parameters
|   # files in templates become the repo for users
|   templates/
|   |
|   |-- docs/
|   |   | create-gatsby-site.md      # documentation on how to work with your gatsby application and external developer resources.
|   |-- __mocks__/                   # mocks some core gatsby objects for easier testing
|   |   |-- file-mock.js
|   |-- .circleci/
|   |   |-- config.yml               # circle ci build & deployment configuration
|   |-- src/                         # src contains your gatsby application code
|   |-- .gitignore
|   |-- README.md
|   |-- package.json
|   |-- yarn.lock

Prerequisites

  • Have CircleCI and GitHub token setup with the Zero project.
  • CI-user created via EKS-stack with access to AWS S3.

Initialization

This step is meant to be executed during zero apply, includes following steps:

  • Adding environment variables to CircleCI project.
  • Linking the CircleCi with the GitHub repository
    • Linking the circleCI will automatically trigger the first build and deploy your application to AWS S3

FAQ

Why is my Gatsby landing page application not yet accessible?

  • It takes about 35 - 50 mins for your deployed application to be initially globally available through AWS CloudFront CDN.

Other links

Project board: zenhub

About

Deployable zero module, contains a landing page built with Gatsby.

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

10 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.