opensandiego / sdvv-frontend

Frontend for the Campaign Finance Transparency Dashboard

Home Page:https://followthemoneysandiego.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Transparency Dashboard for San Diego City elections

Organizations Involved in the Project

Links

Background Information

Currently, campaign finance information for candidates running for local offices as well as money spent by outside groups to support or defeat them is not readily accessible to the public. When the amount of money being spent as well as the source is not known, voters feel disenfranchised by the election process. Making campaign finance data easy to find and read will increase public trust and confidence in the election process.

For more information with Voter's Voice Initiative visit https://sdvotersvoice.org/

Data Source

The campaign finance data used in this site is sourced from publicly available campaign disclosure data provided by the City of San Diego's Electronic Filing System.

Prerequisites

  • Angular CLI 16+
  • npm 9.8+
  • node 18+

Setup

  1. Clone directory from github

  2. change to the sdvv-frontend directory

cd sdvv-frontend
  1. Run npm install to install all the dependencies
npm install
  1. Install the Angular CLI
npm install -g @angular/cli
  1. Build the libraries at least once. This will build them into the /dist folder.
npm run build:lib

If you are modifying a component in a library then you can run either library in watch mode using:

npm run start:lib:ui:charts
npm run start:lib:ui:components
  1. Start the Angular server then browse to http://localhost:4200/
npm run start

Or to start the server and open the application in the browser.

ng serve --open

The easiest way to run the site locally is to have it access the data using the remote development backend hosted on Heroku. This does not require the backend or database to be run locally. To do this use:

npm run start:db:remote

Contributing

Contributing

About

Frontend for the Campaign Finance Transparency Dashboard

https://followthemoneysandiego.org/

License:MIT License


Languages

Language:TypeScript 78.8%Language:SCSS 8.9%Language:HTML 8.4%Language:JavaScript 2.0%Language:MDX 1.3%Language:CSS 0.5%Language:Dockerfile 0.1%