Skip to content

WarnerMedia/boilerplate-static-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boilerplate for Deploying a Static CDN/Website

This repository sets up a simple deployment flow for a static CDN/website using AWS CodePipeline.


NOTE

This repository should never be used directly, the "Use this template" button should always be utilized to create fork of this repository.


Table of Contents

Version-Specific Documentation

  • Version One (v1) README: Documentation for the main version that uses the current base infrastructure. Go to this README if you are looking for quick-start instructions.

Project CI/CD Versions

  • Version One: This version of the boilerplate assumes you are working with a non-prod/prod AWS account split and that you have already set up the base infrastructure: boilerplate-aws-account-setup
    • This version uses manual approval steps to move the current artifacts through the flow.
    • This version is the current active version and the one folks should typically use.

Design Goals/Highlights

  1. Use a flavor of trunk-based development: https://trunkbaseddevelopment.com/
  2. Leverage GitHub and pull requests for managing changes.
  3. Encourage the use of "Conventional Commits" to help make commit message more meaningful: https://www.conventionalcommits.org/

Frequently Asked Questions

  1. This README.md file has no information on how to get started, where do I start?
    • The detailed documentation for getting started is in the README.md for a specific version, so for v1, you would go here.
  2. Why is most of the content in a v1 folder?
    • The idea is that you can have multiple major versions of your application in one repository. Perhaps the first version used Node.js and CloudFormation, and now the second version uses Python and Terraform, they can both live in this repository under different base folders.
    • Each version of the product should have the ability to filter out files during the build process. For instance, in v1, you can filter out the v2 files by using the orchestrator list files.
    • You could also rename v1 to something like current, and then you would eventually have folders such as previous, current, and next. So you could support a previous version for a short period of time, have the current active version, but also start developing the next version, all in the same repository.
  3. Is the v1 folder required?
    • No, you can choose to exclude the version folder and things should generally work.
    • NOTE: Changes are always tested with the v1 folder in place, so it is possible that there are bugs when trying to remove this folder level, please report the bugs if you find them.
  4. Can I use this boilerplate directly?
    • No, you should always fork this repository into your own repository.
    • You always work from a copy of this boilerplate, not the original repository.
    • This repository is set up to be used as a repository template. Click the "Use this template" button on the main page of the repository to make your own, project-specific copy.
  5. This boilerplate is missing functionality, has broken functionality, or I don't like how something works, what do I do?
    • This boilerplate is intended to be a solid starting point for your project. Since you will be making your own copy of this repository, you can make any changes/enhancements you need to your copy (in order to meet the requirements of your project).
    • If there is missing or broken functionality, please feel free to put in a pull request with the bug fix or enhancement.
    • If you don't like how something works, contact one of the current maintainers to discuss your suggested changes, or put in a pull request with the suggested changes.
    • NOTE: Please do not merge in any pull requests to this repository without review from one of the project maintainers.

License

This repository is released under the MIT license. View the local license file.

About

Simple static CDN/site deployment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published