Skip to content

cfpb/complaint-intake

Repository files navigation

Complaint Intake

This project improves the online forms used by consumers to submit complaints about the financial marketplace. It is currently in the initial discovery phase of development.


Dependencies

Installation

Using the console, navigate to your project directory (cd ~/Projects or equivalent). Clone this project’s repository and switch to its directory with:

git clone git@github.com:cfpb/complaint-intake.git
cd complaint-intake

Then, run the setup script:

./setup.sh

Development

Once the setup finishes, you can start developing.

First, open a server tab in your terminal and run:

python -m SimpleHTTPServer

Open a gulp tab in your terminal and run:

gulp watch

That should open a tab in your browser that points to http://localhost:3000/dist/, where you should see the complaint landing page.

Do all your development on the files in /src/. Your browser should automatically refresh the page as you make changes to anything in /src/.

Currently, the code lives in /src/ and references legacy assets in /src/v0/. All the pages in there are being iteratively refactored to be more standard Capital Framework pages. Refactored JS and CSS will get moved to /src/static/.

Releases

At the end of each sprint, we release the new iteration by updating the gh-pages branch. Here’s the process:

  1. Run one final gulp clean && gulp build to make sure all the changes you want to release are built into the dist directory
  2. Make a copy of the dist directory somewhere, like your desktop
  3. Rename that copy of dist to the version you’re releasing, like 0.52
  4. git checkout gh-pages
  5. Copy everything in your new version directory into the root of gh-pages, overwriting the old HTML files and the static and v0 directories there
  6. Move your new version directory into versions
  7. git add .
  8. git commit -m 'Released X.X.X' (where X.X.X is the version you’re releasing, like 0.6.0)
  9. git push origin gh-pages
  10. Check to make sure the latest version is available at two URLs:
  1. Switch back to master
  2. Update CHANGELOG.md with the latest version’s release notes
  3. Update package.json with the latest version
  4. git add .
  5. git commit -m 'Updated changelog'
  6. git push origin master
  7. Released!

Open source licensing info

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

About

Improving the forms used by consumers to submit complaints about the financial marketplace.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 9