Static, public frontend to display City government web analytics
CSS JavaScript HTML Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
images
js
sass
# TERMS OF USE AND DISCLAIMER
.gitignore
404.html
CONTRIBUTING.md
Gemfile
Gemfile.lock
LICENSE.md
Makefile
README.md
index.html

README.md

Public analytics

A collaboration to publish government website analytics.

Building the Stylesheets

  • Install Sass, Bourbon, and Neat:
bundle install
  • To watch the Sass source for changes and build the stylesheets automatically, run:
make watch
  • To compile the Sass stylesheets once, run:
make clean all

or:

# -B tells make to run even if the .css file exists
make -B

Deploying the app

To deploy this app to analytics.phila.gov, you will need authorized access to the City's Amazon S3 bucket for the project.

If using s3cmd, the command to deploy the site with a 5 minute cache time is:

    s3cmd put --recursive -P --add-header="Cache-Control:max-age=300" *.html images js css s3://analytics.phila.gov/

This deploys index.html, and the relevant static assets, to the bucket. For now, it sets a cache time of 0, though we may increase this.

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.