Coder Social home page Coder Social logo

codeforfoco / cerp-backend Goto Github PK

View Code? Open in Web Editor NEW
3.0 7.0 6.0 8 MB

Community Elections Resources and Polling Tool

Home Page: https://cerp-code-foco.herokuapp.com/

License: MIT License

Python 90.82% HTML 4.26% Shell 4.92%
civic-hacking code-for-america

cerp-backend's People

Contributors

danlaroche avatar deidyomega avatar jordanmajd avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cerp-backend's Issues

Create Development Environment (docker, instructions) and get current repo working for environment

Currently, the development environment specified includes the software requirements, but when running the backend on Windows or Mac, some issues are seen with the connection between the backend and frontend, and there are some backend errors while using the API. Investigate the environment-specific issues and fix enough bugs to get the frontend and backend working reliably for new feature development.

Slim down geojson

It's kinda meaty, ~2ish MB now. Make it smaller via:

  • Remove unneeded fields (e.g. SHAPE_LEN, etc.)
  • Simplify/reduce vertices
  • Reduce coordinate precision (e.g. 40.374187379751248 to 40.37419)
  • Minify and commit

Other:

  • Test it: zoom in really far, see if vertices look suffish
  • Screenshot the old-vs-new savings (just cuz)
  • Document procedures (use ogr2ogr if no Node-based modules available)

Wishlist: topojson!

Document API Endpoints

Document the API endpoints.

Bonus points: consider automated solutions so that as the API evolves we don't need to continue to update the docs. One example would be utilizing build tooling with javadoc style method comments to generate markdown.

Future: expose the documentation on the front end side of the website.

Improve API endpoints

Current API does not have easy way to look up precinct list, or use the API to get data on a race but not at a precinct level. Also, as of 8/16, some of the API endpoints have errors due to the keys having spaces.

Contact Angela Myer and ask where the data is

We have been left with a PDF again for 2017. Luckily, the results look to be in a non-image format, but we still need to find out if we can skip the rigamarole of extracting the data and instead get access to the data directly.

Two parts for this issue:
-Investigate SB17-040 and find out if we can leverage it to get the data
-Contact Angela Myers and politely ask for the data. Either get the data or pursue a public pressure campaign to ensure that precinct level data is not released in unusable formats any more.

Prototype a live map with the ability to switch between races/votes

We need an extensible javascript/HTML5 map that can ingest data from the backend and present it on a larimer county precinct map. Limit to 2016 for now as 2017 may have a different precinct map.

Eventually we want:
-Selector/dropdown that performs a get on the data and populates the map
-Adjustable heatmap properties (color, cutoff, gradient control)
-Export as image, pdf, printable page

This can start as a pretty rudimentary map. We just need an easy way to show off the backend and maybe help debug data and backend changes as well.

Layout UX Design

Draft a design for the look and feel with the project, potentially with a local designer.

Get 2016 Election Data for Foco/Larimer

We have a contact at the City of Fort Collins who has access to the elections people for the city, and potentially county contacts. We need to get election data per precinct for at least the presidential election, and hopefully for state and local issues as well.

Olivia Terrell
[email protected]
970-416-2282
215 N. Mason St.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.