The Code for America Brigade Website
HTML Python CSS JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
brigade
cfapi Fix error caused by empty array in organizations JSON Jun 11, 2018
filters Convert string that uses brigade name and city to unicode Jun 23, 2018
tests
.flake8 Add flake8 and clean up all infractions Nov 17, 2017
.gitignore Add 'node_modules' to .gitignore Jan 9, 2018
.node-version WIP Add Webpack Dec 19, 2017
.travis.yml Update Webpack path Jan 9, 2018
LICENSE Add MIT license Nov 17, 2017
Procfile Merge branch 'fix-the-damn-site' Jul 29, 2016
README-Monitor.md md styling Feb 2, 2016
README-Project-Search.md Remove /numbers page Apr 17, 2018
README.md Clarify relationship between Chi Hack Night and Open Gov Hack Night Jun 9, 2018
app.json Add nodeJS buildpack to app.json Jan 9, 2018
manage.py Fix tests by importing correct package May 4, 2018
package.json Install bourbon-neat Feb 15, 2018
requirements-dev.txt Add flake8 and clean up all infractions Nov 17, 2017
requirements.txt Improve formatting of date for Brigade events Jan 13, 2018
runtime.txt Add runtime.txt for Heroku Nov 15, 2017
webpack.config.js Fix robots.txt Feb 12, 2018
yarn.lock

README.md

The Code for America Brigade Website

Code for America Brigades are local volunteer groups that bring together community members to help make government work better. Brigades use technology to build new tools to help with local civic issues. Code for America supports Brigade chapters with resources, tools, and access to the wider civic technology movement.

This repo is for the Brigade website https://www.codeforamerica.org/brigade

Goals

This website is meant to:

  • Explain what the Brigade program is
  • Help people find their local Brigade
  • Show off the fine works of the Brigades
  • Provide tools that help Brigade work
  • Make it easy to start a new Brigade

History

The Brigade program started in 2012 as an experiment, largely copying the success of Chi Hack Night (known at the time as Open Gov Hack Night).

This website is on its third version. V1 Was a Rails site with many contributors. It served the Brigade well as it was growing. As Code for America became better at supporting the volunteer groups, we needed something different.

The CfAPI was built as reaction to how Brigades were operating themselves. We now meet them where they are, instead of trying to get them to log into our site.

V2 was powered by the CfAPI and worked great, yet was built quickly with PHP and Javascript. It was kind of a cobweb of dependent parts.

V3, the current site, is meant to simplify the code and make it easier for Brigade members to get involved in building the Brigade site.

Project Search

The Project Search page is a new service we built to search across thousands of civic technology projects. Go try it out, we think its pretty useful.

Read more at README-Project-Search.md

Installation

The Code for America Brigade site is built on Flask and Python with a little bit of Javascript. The brigade/views.py file describes the routes. The brigade/templates files have the HTML templates.

Set up a Python virtual environment.

Install the required libraries.

Install Node, Yarn and Webpack

brew install node yarn
yarn install

During development, run webpack.

./node_modules/.bin/webpack --watch

Then run the server in debug mode:

python manage.py runserver

The server will be available at http://localhost:4000/brigade/.

or run it using Honcho and the Procfile:

honcho start

You can also run unit tests like this:

python manage.py runtests

Contacts

Copyright

Copyright (c) 2015 Code for America.