Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caciviclab/odca-jekyll
New ODCA front end
https://github.com/caciviclab/odca-jekyll
california campaign-finance code-for-america election jekyll jekyll-site openoakland
Last synced: 2 months ago
JSON representation
New ODCA front end
- Host: GitHub
- URL: https://github.com/caciviclab/odca-jekyll
- Owner: caciviclab
- License: agpl-3.0
- Created: 2018-02-05T07:12:43.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-11T12:11:42.000Z (6 months ago)
- Last Synced: 2024-06-11T17:10:16.081Z (6 months ago)
- Topics: california, campaign-finance, code-for-america, election, jekyll, jekyll-site, openoakland
- Language: HTML
- Homepage: https://www.opendisclosure.io
- Size: 20.9 MB
- Stars: 17
- Watchers: 22
- Forks: 13
- Open Issues: 46
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Open Disclosure Oakland [![CircleCI](https://circleci.com/gh/caciviclab/odca-jekyll.svg?style=svg)](https://circleci.com/gh/caciviclab/odca-jekyll)
===========================================================================[Open Disclosure][opendisclosure-io] is a project of [OpenOakland](https://openoakland.org).
The website provides transparent, non-partisan campaign contribution and expenditure data in an accessible and easy to understand format. We hope this site will engage the voting public and
raise awareness and accountability. Ultimately, this is one step toward shifting
politics into a movement of civic engagement and ultimate citizen action.# Contents
- [Code of conduct](#code-of-conduct)
- [Quickstart for developers](#quickstart-for-developers)
- [Project documentation](#project-documentation)
- [License](#license)# Code of conduct
To participate in this project, we ask you to abide by the OpenOakland [Code of Conduct](CODE_OF_CONDUCT.md).
# Quickstart for developers
There are two ways to run the website locally for development: using Docker, and running everything locally.
## Run using Docker
### Prerequisites
- [Docker](https://www.docker.com/products/docker-desktop)
Ensure you have the backend cloned as a sibling to this repo. Find more details below in [Finance disclosures](#finance-disclosures).
Note: If you are switching from the "local" build to the "docker" build you need to:
$ rm -rf .jekyll-metadata
### Run this command in your terminal
$ make docker
Open your web browser to [http://localhost:4000/](http://localhost:4000/).
## Run locally
### Prerequisites
- [Ruby 2.7](https://www.ruby-lang.org/)
- [Bundler 2](https://bundler.io/) gem
- [Make](https://www.gnu.org/software/make/)
- [Node 12.16+](https://nodejs.org/)
- [ImageMagick](https://www.imagemagick.org/)
- [nvm](https://github.com/nvm-sh/nvm#install--update-script)### Run these commands in your terminal
$ nvm install && nvm use # To get on the right node version
$ make setup # To install all dependenciesEnsure you have the backend cloned as a sibling to this repo. Find more details below in [Finance disclosures](#finance-disclosures).
$ make pull-finance
$ make serveOpen your web browser to [http://localhost:4000/](http://localhost:4000/).
### Additional commands
You can build the site without running a server, if needed
$ make buildYou can run the tests locally too
$ make test
## Finance disclosures
The process of downloading, converting, and calculating the reported financial
disclosures is handled by [disclosure-backend-static][backend-static]. To get
the finance data into this project, we use [gulp.js](https://gulpjs.com/) to
copy the files over and do some light transformations on their file paths.If you have thoughts on how this could be improved, [let us
know](https://github.com/caciviclab/odca-jekyll/issues/5)!### Update the finance data
In order to get the latest finance data, first clone
[disclosure-backend-static][backend-static] as a sibling to this project's
directory. _It is important that the `disclosure-backend-static` project is
cloned to the correct path (`../disclosure-backend-static`) which is hardcoded
in the gulpfile (pull requests welcome)._Then you can run the pull-finance task.
$ make pull-finance
Now rebuild your site with the finance data.
$ make serve
## Deployment Information
This site is deployed by a [scheduled CI task](https://circleci.com/gh/caciviclab/workflows/odca-jekyll) twice daily. It clones the [disclosure-backend-static][backend-static] repo and pulls in the finance data before doing a build. Merges to the master branch will also trigger a deploy.
The site is hosted on [GitHub Pages](https://pages.github.com/). The deploy
consists of a force push of the `_site` directory to the `gh-pages` branch done
by [_bin/deploy.sh](_bin/deploy.sh).# Project documentation
- [Project Overview](https://docs.google.com/document/d/147WBdGqM_J9pA_fmUhuE0DOEKrIFy0GaT9m66oXTbG0/edit?usp=sharing)
# License
Content for this website is available under the [Creative Commons
Attribution-NonCommercial-ShareAlike 4.0 International
License](https://creativecommons.org/licenses/by-nc-sa/4.0/).Code is licensed under the GNU Affero General Public License.
```
www.opendisclosure.io California’s online source for local campaign finance data
Copyright (C) 2020 OpenOaklandThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
```[Font Awesome Icons](https://fontawesome.com/) located under `assets/fontawesome/` available under the
[CC-BY-4.0 License](https://creativecommons.org/licenses/by/4.0/).[backend-static]: https://github.com/caciviclab/disclosure-backend-static
[opendisclosure-io]: https://www.opendisclosure.io/