Giter VIP home page Giter VIP logo

hechalaley's Introduction

Hecha la Ley

An open-source bill tracking utility for Congresses.

Usage

Before starting, make sure you have Node 8.x installed and MongoDB >=3.x running.

  1. Only the first time, run the bash command: bin/ensure-indexes. To make sure to create the indexes on your MongoDB.

  2. Run the server: npm start

Development

During development you can use npm run dev to run the server and auto-reload on any file-change.

Docker Compose on Development

If you have Docker installed, this repo contains the file docker-compose.yml prepared and configured to run a complete development server with one simple command:

On the root of the project, just run docker-compose up and it will start a complete server development with MongoDB and email services. It will also listen for changes on your local files and update them accordingly:

docker-compose up

If you want to close the server simply press CTRL+C, and run the following command to make sure that everything is stopped:

docker-compose down

If you change any dependency on the package.json you have to stop docker-compose with the previous command, and then start it again but instructing it to rebuild the containers:

docker-compose up --build

If for any chance, the previous command didn't work, you can also send the currently running container custom commands, in this case an npm install to make sure all the dependencies are updated:

docker-compose exec app npm install

License

hechalaley's People

Contributors

gvilarino avatar jotadepicas avatar juanpernu avatar juanpernuml avatar mjlescano avatar sabriidelpoy avatar sachalifs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hechalaley's Issues

Add 'show last modifications' toggle

This toggle will switch between the diff view of the currently selected stage, and the plain view of the most recent contents of the Bill (the contents of the most recent stage that has contents associated)

Add footer on homepage

With:

  • Github logo pointing to this repo
  • Logo of Directorio Legislativo
  • Logo of Democracia en Red

CoSigners and Authors not displaying correctly in admin

When you edit a Stage or a Bill, coSigners and Authors (ie. Politicians in edit view) do not show correctly. It only displays the "tag" with the "x" symbol but no name.

Futhermore, when you save, coSigners/Authors do not seem to be saved to the database (ie. they show blank both in the show view of the admin and in the frontend).

Backend server logs this:

billtracker:root GET /api/politicians/[object%20Object] +6ms
Error: You must supply a valid Politician ID
    at findById (/home/ubuntu/billtracker/lib/politician/politician-dao.js:28:17)

So it seems it has something to do with the Politician toString or id property or something.

Frontend - mark selected stage

Selected stage should appear as selected. Also, the stage previous to the selected one should be visually different from the rest.

Enable author modal dialog

Currently is disabled and the Politician only has a profileURL to redirect when the "view profile" button is clicked.

Add Politician missing fields

Bio

For a brief description of the politician. Somthing like twitter's Bio.

Party

e.g.: Coalición Cívica

Social Contact

The PoliticianSchema should have something like:

{
  // ...
  social: [{
    value: String
    media: {
        type: String,
        enum: ['facebook', 'email', 'twitter', 'linkedin']
    }
  }]
  // ...
}

Meant to populate this links on profile view:
screen shot 2016-04-05 at 03 01 01

Comissions

To show a list of the comissions she/he belongs.

Bills

To show a list of the bills she/he participated. Beign an author o cosigning it, or editing it.

Diff is acting weird on the frontend

Diff is showing removals in red, but inside the removal, a stronger red color is used to highlight a portion of the removal. Is this wordiff? Protoduction bugfeature?

The same happens with additions (ie. green and a subset highlighted in a stronger green).

Allow creation of future stages

We should allow for stages to be created upfront (ie. in advance), to show the possible future roadmap of the bill.

However, once a stage becomes associated with a git commit (.ie, contents are submitted for the Stage), the stage becomes read-only and no new stages can be added in the past related to the stage.

In other words, future/potential stages can be added and edited, but present and past stages which already have contents, cannot.

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.