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.
- Status: Alpha CHANGELOG
- Node and npm (Node Package Manager): Used for downloading and managing front-end dependencies and assets.
- Python: Used to run a simple web server.
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
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/
.
At the end of each sprint, we release the new iteration by updating the gh-pages
branch. Here’s the process:
- Run one final
gulp clean && gulp build
to make sure all the changes you want to release are built into thedist
directory - Make a copy of the
dist
directory somewhere, like your desktop - Rename that copy of
dist
to the version you’re releasing, like0.52
git checkout gh-pages
- Copy everything in your new version directory into the root of
gh-pages
, overwriting the old HTML files and thestatic
andv0
directories there - Move your new version directory into
versions
git add .
git commit -m 'Released X.X.X'
(where X.X.X is the version you’re releasing, like 0.6.0)git push origin gh-pages
- Check to make sure the latest version is available at two URLs:
- https://cfpb.github.io/complaint-intake/
- https://cfpb.github.io/complaint-intake/versions/X.X.X/ (where X.X.X is the version you’re releasing, like 0.6.0)
- Switch back to
master
- Update
CHANGELOG.md
with the latest version’s release notes - Update
package.json
with the latest version git add .
git commit -m 'Updated changelog'
git push origin master
- Released!