Skip to content

Latest commit

 

History

History
86 lines (67 loc) · 3.38 KB

README.md

File metadata and controls

86 lines (67 loc) · 3.38 KB

Build Status Coverage Status

Retirement: Claiming Social Security

This is a project aimed at helping Americans make choices about retirement, including when to claim Social Security benefits.

  • Status: Beta

Setup dependencies

Code dependencies

For Python testing

For browser testing

Installation

The tool is a Django module, intended to be installed in a larger Django project. But it can run on its own in a Mac or Linux environment, assuming you have the setup dependencies of pip, virtualenv and virtualenvwrapper installed. Here's how:

Go to where you want the project to be created, make a virtual environment, clone this repository (or your own fork of it) and install requirements and settings.

mkvirtualenv retirement
git clone https://github.com/cfpb/retirement.git
cd retirement
setvirtualenvproject
pip install -r requirements.txt
cp test_settings.py settings.py

Load the app's database tables and content.

python manage.py syncdb
python manage.py loaddata retiredata.json

Fire up a development server.

python manage.py runserver

The "Claiming Social Security" page should load at localhost:8000/claiming-social-security/.

Usage notes

  • The app is set up to run inside consumerfinance.gov, so if you run it locally, some fonts may not load because of Cross-Origin Resource Sharing rules.
  • The app sends http requests to the Social Security Administration's Quick Calculator to get benefit estimates for the chart.

How to run software tests

  • You can use nose to run the test suite and see code coverage information
nosetests --with-coverage --config=.coveragerc --cover-package retirement_api

Getting involved

If you find a bug or see a way to improve the project, we'd love to hear from you. Fork the project and send us a pull request with your changes.


Open source licensing info

  1. TERMS
  2. LICENSE
  3. CFPB Source Code Policy