Git Product home page Git Product logo

deputy-overwatch's Introduction

Deputy Overwatch

Supervise our congressmen spendings.

Features

API with every congressman indemnifications budget provided in JSON format. Checkout the api queries documentation: wiki/Api

API Examples

  • list all deputies

      /api/deputies/
    
  • list indemnities, grouped by categories and deputies

      /api/indemnities/categories/deputies/
    
  • list indemnities, grouped by categories and deputies, but only top5 deputies

      /api/indemnities/categories/deputies/?top=5
    

Dependencies

Various 3rd Party libraries are needed in order to run Deputy Overwatch. Checkout the Dependencies documentation: wiki/Dependencies

Installation

Deputy Overwatch is built using Flask, an open source Python library for interacting with HTTP. The following steps will require to install the tools listed below:

  1. Clone from bitbucket (this will create a deputy-overwatch folder in the current directory)

     git clone https://bitbucket.org/diogolundberg/deputy-overwatch.git
    
  2. [optional] Create a virtual environment. We suggest installing virtualenv with virtualenvwrapper. This allows python libraries to be installed easily and specifically on a per project basis.

    Once this is complete, run the following to initialize your environment.

     mkvirtualenv --python=python3 deputy-overwatch
     workon deputy-overwatch
    
  3. Install the required Python libraries

     pip install -r requirements.txt
    
  4. Create the database

    From the project's folder:
    
     python manage.py db upgrade
    
  5. Scrape data to fill your database

    From the project's folder:
    
     python manage.py scrape
    
  6. Run the site locally!

     python manage.py runserver
    

Contribution Guide

  • Make sure to check where the database is being created(project's root) and get a SQLite client to check it!

  • This project is set up to check pep8 offenses in a pipeline, install a good linter to save time

  • Finally, the most important, run tests! Try to use some good practices like TDD.

Running tests

 python manage.py test

Check test coverage

 nosetests --with-coverage --cover-erase --cover-package=overwatch --cover-html

deputy-overwatch's People

Contributors

diogolundberg avatar dependabot[bot] avatar

Stargazers

Igor Dias avatar

Watchers

James Cloos avatar

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.