Giter Site home page Giter Site logo

classicvalues / prime-simplereport-site Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cdcgov/prime-simplereport-site

1.0 1.0 0.0 29.33 MB

Landing / marketing site for the SimpleReport application

Home Page: https://cdcgov.github.io/SimpleReport_Public_Site/

License: Creative Commons Zero v1.0 Universal

Ruby 0.10% HTML 15.24% SCSS 6.67% JavaScript 77.92% Shell 0.08%

prime-simplereport-site's Introduction

Simple Report Public Website

The static website resources for https://www.simplereport.gov/

Table of Contents

Recommended Versions

Software Version How to Configure
Node 14.x Configure with .nvmrc using nvm
Ruby 2.6.x Configure with .ruby-version using rbenv

Setup

Install node packages yarn install

Install bundler gem install bundler

Install gems bundle install

Run Setup yarn setup

Build/Watch sass in separate yarn watch

Serve site yarn serve

E2E Tests

End to end tests are written with Nightwatch.js. Run the tests while the site is being served locally with: yarn e2e

Contributing

  1. make changes on a branch
  2. Open a PR and deploy branch to a non prod env (staging, test, pentest or github pages). Note this environment will be overridden on merges to main
  3. Link to deployed code in PR
  4. Ensure all checks are passing, get at least one code review, and that changes work as expected in the cloud env
  5. Merge PR into main make sure changes are deployed and working in demo
  6. Manually trigger a deploy of main to prod. See Manually Trigger Deploy

Cloud Environments

Type Static Site URL Deployment How to trigger
Prod https://www.simplereport.gov Automed on merge to main Github Actions
Staging https://stg.simplereport.gov Automed on merge to main Github Actions
Dev https://dev.simplereport.gov Automed on merge to main Github Actions
Demo https://demo.simplereport.gov Automed on merge to main Github Actions
Test https://test.simplereport.gov Automed on merge to main Github Actions
Pentest https://pentest.simplereport.gov Automed on merge to main Github Actions
Training https://training.simplereport.gov Automed on merge to main Github Actions
github pages https://cdcgov.github.io/prime-simplereport-site/ Automed on merge to main and gh-pages yarn deploy

Manually Trigger Deploy

  1. Navigate to the Github Actions Tab
  2. Select the environment you want to deploy to from the workflows list. In this case we are selecting the dev environment Select-dev
  3. Click the "Run workflow" button, select the branch you want to deploy and click the green "Run workflow" button. In this case we are deploying the latest commit on main to dev
  4. select branch
  5. After the workflow is completed you can verify the changes are live by Checking the deployed commit hash. This is done my going to view-source:https://dev.simplereport.gov/ (or the url for the env you deployed to). Note the deployed commit hash will appear in a comment right before the closing body tag.
    <!-- 56799f6 -->
  </body>
</html>

The Azure environments are served behind a CDN and may take some time to update. If you are not seeing an update or are fixing an urgent bug the CDN can be purged via https://docs.microsoft.com/en-us/azure/cdn/cdn-purge-endpoint Screen Shot 2021-03-02 at 4 35 14 PM

prime-simplereport-site's People

Contributors

maya avatar nickclyde avatar rebecca-lm avatar nickbristow avatar will-ys avatar timbest-cdc avatar emmastephenson avatar femmebot avatar emmanuel-apau avatar bmaden-usds avatar nullflux avatar benwarfield-usds avatar ronaldheft-gov avatar nathancrtr avatar nickrobison-usds avatar nickscialli-usds avatar jeremyzitomer-usds avatar jdorothy avatar katiealoisi avatar nickrobison avatar timbest avatar zdeveloper avatar

Stargazers

Classic Values 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.