Giter VIP home page Giter VIP logo

hep.bcbs.com's Introduction

This repository holds the static content for the BCBS.com Blue Health Equity initiative.

๐Ÿš€ Tech Stack

  • Gatsby v3+
  • Algolia Instantsearch

๐Ÿ’ป Local development

(TBD)

By default Gatsby will source data from the Drupal stage environment, which requires you to be on the Oomph VPN or other whitelisted network. (If you are not on a whitelisted network you will see HTTP 403 errors.) To configure Gatsby to use a local Drupal environment, create a file called .env.local and add content similar to this:

DRUPAL_BASE_URL="https://bcbs.lndo.site/"
NODE_TLS_REJECT_UNAUTHORIZED=0

If you wish to use some other existing environment, you can either copy the appropriate .env.* file to .env.local (e.g. copy .env.dev to .env.local) or you can run the Gatsby build with a DEPLOY_ENV environment variable, e.g.:

DEPLOY_ENV=dev gatsby build

Note that the .env.local file is ignored by git and should not be committed.

๐Ÿ’ซ Deployments

Build and Deploy

This project uses GitHub Actions for its CI/CD pipeline. The main workflow builds Gatsby and, for specific cases, deploys the output to AWS S3 buckets. This workflow is triggered by pushing any branch, a semantic tag, or by the GitHub API's workflow_dispatch and repository_dispatch events.

The steps of the workflow are:

  1. Build Gatsby, retaining its cache between workflow runs
  2. Archive the Gatsby output
  3. Sync the archive contents to an AWS S3 bucket
  4. Clear the AWS Cloudfront cache for the static site

Steps 3-4 will only run for the dev, uat, stage, and master branches or any tagged releases. The master branch would normally be excluded, but this workflow can be triggered by the GitHub API's workflow_dispatch and repository_dispatch events, which use the repository's default branch.

Note: builds for any non-deployment branches will currently default to using the Drupal stage environment as the Drupal data source.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.