GithubHelp home page GithubHelp logo

juntaoluo / va.gov-cms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from department-of-veterans-affairs/va.gov-cms

0.0 1.0 0.0 81.59 MB

Editor-centered management for Veteran-centered content.

Home Page: https://prod.cms.va.gov

License: GNU General Public License v2.0

Shell 0.07% JavaScript 11.87% PHP 74.82% CSS 0.62% HTML 0.25% Dockerfile 0.02% SCSS 3.15% Twig 6.94% Gherkin 2.15% Jinja 0.06% MDX 0.05%

va.gov-cms's Introduction

VA.gov CMS

This is the public/open documentation for the VA.gov Content Management System (CMS). The private/sensitive documentation is here. See sensitive-guidance.md to read about what should be public vs. private. We follow the U.S. Digital Services Playbook and default to open/public).

VA.gov is constructed at the highest level by three projects:

  • the CMS or Content Management System, in this repository
  • the vets-website project, covering the many special- and general-purpose applications making up the website
  • the content-build project, which extracts and processes the content from the CMS for display on the website

Contributing to this documentation

If you find any improvements to make to this documentation and you have push access, please commit your changes directly to the main branch. Please prefix your commit message with [DOCS] e.g. [DOCS] Commit message ....

If you don't have push access, you can submit a pull request for review.

Thanks,

The VA.gov CMS Team

Table of Contents

  1. Introduction
    1. About VA.gov
    2. Contributing
    3. High-Level Architecture
    4. Infrastructure
  2. Developer Info
    1. Getting Started
    2. WEB & CMS Integration
    3. Workflow
    4. Project Conventions
    5. Environments
      1. CI Environments
      2. Local - DDEV
      3. BRD Environments
      4. HTTPS
      5. Environment Variables
      6. Kubernetes
    6. Alerts
    7. GitHub Workflows
    8. Logging into BRD (e.g. production, staging) instances
  3. Quality and Testing
    1. Quality Assurance (QA)
    2. Development Best Practices
    3. Code Review
    4. Testing
    5. Debugging
    6. Comparing GraphQL Output
    7. Dependabot Updates
  4. Release & Deployment
    1. The BRD System: Build, Release, Deploy
    2. CMS Release Process
    3. CMS-CI Release Process (TODO)
  5. Architecture
    1. Overview
    2. Drupal
      1. Memcache
    3. Content Models and Documentation
      1. Centralized Content
    4. MetalSmith
    5. Interfaces - APIs and Feature Flag
    6. Migrations (data imports)
      1. Facility
      2. Form
    7. Security
    8. Upstream Dependencies
    9. Downstream Dependencies
  6. CMS Users
    1. Login / SSOi
    2. CMS User Notification Systems
    3. Drupal API Users
  7. CMS Content
    1. Workflow
      1. Alias Lockdown
      2. Broken Links
      3. Content Preview
    2. Content Release
    3. Section Dashboards
    4. Facilities
      1. VAMC Facilities
        1. VA Lovell / TRICARE
  8. Historical
    1. Main branch name change
    2. Elasticache Investigation
    3. EWA Rules of Engagement

Introduction

About the CMS

This repository hosts the source code for the Content Management System (CMS or CMS-API) utilized by VA.gov.

The production instance can be found at prod.cms.va.gov. Please note that access to the production CMS is limited; refer to Getting Access for more information.

Built on Drupal 9.5, the CMS employs the Composer package management system. To get started, consult Getting Started.

Contributing

All of the source code used for generating VA.gov is open source, listed under the department-of-veterans-affairs organization on GitHub:

The VFS team deploys all of these apps using a Jenkins server, configured with a private repository.

All development on these projects is done via Pull Requests.

High-Level Architecture

The public-facing website at VA.gov is a static site hosted on S3, composed of HTML, CSS, JavaScript, and images.

This codebase is dedicated to the CMS, built on Drupal 9.

The source code for generating the public site is located in the vets-website repository. The component responsible for extracting raw content from the CMS and converting it to HTML is developed in a separate repository, content-build.

Decoupled Drupal

The production instance of the CMS is utilized in two main ways:

  • as a tool for the VA.gov Content Team to efficiently create and manage content
  • as a repository and API server for the content-build process to publish content to the world at large

Build and Release Process

In a continuous integration context, the content-build project is managed as a dependency of the CMS project; the build script is executed targeting the local instance and runs all of the content queries performed as part of the normal content release process, to ensure no changes have been introduced to the CMS codebase that break compatibility. A full content build happens at the conclusion of the testing pipeline on our Tugboat preview environments.

In the normal content release process, GitHub Actions triggers a workflow that targets a mirror (hosted in Tugboat) of the production CMS instance. It retrieves content from the CMS via GraphQL (and other sources) and generates HTML, CSS, JavaScript, and images. These artifacts are then copied to an s3 bucket, which is then rotated into service to serve website visitors.

Infrastructure

This section outlines only the systems utilized by the CMS. See the READMEs in the vets-website or content-build repositories for more information about those projects.

CMS-CI: Pull Request and Demo/Ad-hoc Environments

  • Running Tugboat (docs) at tugboat.vfs.va.gov/. Access restricted to CAG, sign in with GitHub.
  • A single "mirror" environment is regularly populated with a sanitized production database copy.
  • Open Pull Requests get environments created automatically, cloned from the "mirror" environment, with URLs like:
  • Ad-hoc environments can be created and deleted at any time by any logged in user on tugboat.vfs.va.gov/:
    • Should be created under "CMS Demo Environments"
    • Can be named anything and can be set to any branch or Pull Request.
    • These environments will not change or be rebuild unless the creator chooses.
    • Useful for testing and demos outside of the CMS-CI process.

CMS in Build-Release-Deploy: Staging and Production

The VFS Team maintains a system called BRD: Build, Release, Deploy.

The system is powered by Ansible Roles in the VA's "DevOps" repository, located at github.com/department-of-veterans-affairs/devops/tree/master/ansible/build/roles/cms

The BRD system builds Amazon server images using Ansible, and tags those images for release along with the source code of CMS.

The VFS team then deploys those images to the staging and production environments inside the VAEC when the release is ready.

See The BRD System: Build, Release, Deploy for more information.

va.gov-cms's People

Contributors

dependabot[bot] avatar andyhawks avatar ndouglas avatar kevwalsh avatar ethanteague avatar swirtsjw avatar jonpugh avatar acrollet avatar acabouet avatar msbtterswrth avatar elijahlynn avatar edmund-dunn avatar oksana-c avatar rachel-kauff avatar jilladams avatar schiavo avatar omahane avatar cmaeng avatar xiongjaneg avatar dependabot-preview[bot] avatar olivereri avatar timcosgrove avatar kaise-lafrai avatar tjheffner avatar blakeorgan avatar chri5tia avatar netboss avatar mouncifb avatar dsasser avatar cweagans avatar

Watchers

 avatar

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.