Giter VIP home page Giter VIP logo

myra's Introduction

U.S. Department of the Treasury myRA Program

Move to closed-source

On 10/15/2015, the Treasury Bureau of the Fiscal Service confirmed to 18F they were closing the source for the myRA program. This repo only reflects the system as it existed before it was delivered to Treasury and they took over all hosting duties. It does not reflect what is currently on https://myra.gov/.

What

Individual and employer landing pages for the U.S. Department of the Treasury’s new retirement savings program, myRA (“My Retirement Account”).

We plan to use this repository as a place to share our work and direction, but please do not consider anything you see here to be final or production-ready. This is still very much in beta.

Why

This effort is in support of Treasury's new myRA program, which is currently being developed to provide a simple, safe, and affordable way for individuals to start saving.

How it works

The myRA landing pages are static HTML/CSS/JS pages. We maintain the pages in simple Markdown files, which are compiled into HTML by Jekyll. We also use Sass as a preprocessor for the CSS.

Getting started

Ruby gems:

  • gem install jekyll

This site is deployed using Jekyll 2.4.

To keep our code updating continuously as we edit, we use jekyll serve --baseurl '' --watch.

The Branches

File Structure

_data/
|-- navigation.yml    Data file that controls the site-wide header menu

_includes/            Partials to be included on various pages

_layouts/             Two templates for all pages
|-- splash.html       Template to use for home, /individuals and /employers
|-- default.html      Template for all other pages

_site/                The directory that Jekyll compiles everything into

_about/               Pages for the About section

_employers/           Pages for the Employers section

_individuals/         Pages for the Individuals section

_resources/           All resource files for both individuals and employers

_static/              Sass, JS, images and compiled css

Contributing

Content and feature suggestions are welcome via GitHub Issues. Code contributions are welcome via pull request, although of course we cannot guarantee your changes will be included.

Deploying the site

To deploy the site to production, at https://myra.treasury.gov, you will need:

  • Access to the 18F Amazon Web Services account.
  • Permissions to upload to a particular S3 bucket, myra-cloudfront.
  • A command line client to perform the upload, such as s3cmd or the official aws tool. Instructions below show s3cmd. Install s3cmd on Mac with brew install s3cmd, and Ubuntu with apt-get install s3cmd.

To deploy:

  • From the project root, build the site using the production configuration:
jekyll build --config _config.yml,_config-production.yml
  • If the site built without errors, upload the website to the S3 bucket. The below command uses s3cmd to upload all files in _site, make them public, and tells both browsers and CloudFront to cache files for an hour.

From the project root:

s3cmd  put --recursive --add-header="Cache-Control:max-age=3600" -P _site/* s3://myra-cloudfront/

You can see the results of your work immediately at http://myra-cloudfront.s3-website-us-east-1.amazonaws.com.

The live site, https://myra.treasury.gov, will take up to an hour to update.

Bear in mind that the delay time to update the live site depends on the previous deploy's specified cache time, not the one you just did. Assuming you always use the same cache time, it will always update within an hour.

If you need an immediate update, you will have to "invalidate" the CloudFront distribution, using either the web console or a third party tool. (Neither the aws nor s3cmd tools properly support this yet.)

Public domain

This project is in the worldwide public domain. As stated in CONTRIBUTING:

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

myra's People

Contributors

adelevie avatar cscairns avatar dlapiduz avatar gbinal avatar jackiekazil avatar konklone avatar mbland avatar nickbristow avatar noahkunin avatar noahmanger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

myra's Issues

Decide which domain name to use

@NoahKunin @noahmanger @quepol - you may want to weigh in on this. Currently Treasury has a third-level domain name for myRA - myra.treasury.gov. What consideration should we give to a second-level domain such as myra.gov? @NoahKunin suggested a different direction in save.gov, as it would give Treasury more branding flexibility with regards to its overall portfolio of savings products, but that appears to be taken.

Work with Treasury to decide the optimal hosting provider solution

Suggestion: create a simple comparison table with key analysis dimensions (e.g., security, cost) as rows (on the left) and GSA and Treasury as columns (on the top). Fill-out our column and then send it over to Treasury for them to complete their portion and to make a decision.

  • Create AWS estimate
  • Acquire info on Treasury solution
  • Provide final pros/cons

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.