All Projects → g0v → Councilor Voter Guide

g0v / Councilor Voter Guide

縣市長 / 議員 投票指南

Projects that are alternatives of or similar to Councilor Voter Guide

votacidade-app
Calculadora de afinidade para o Vota Cidade 2020
Stars: ✭ 12 (-88.35%)
Mutual labels:  voting, civic-tech
Paravotar
Una herramienta para practicar tu voto con la papeleta de Puerto Rico.
Stars: ✭ 19 (-81.55%)
Mutual labels:  voting, civic-tech
Openprocure
An open list of government procurement thresholds
Stars: ✭ 22 (-78.64%)
Mutual labels:  civic-tech
Discourse Voting
Adds the ability for voting on a topic within a specified category in Discourse.
Stars: ✭ 86 (-16.5%)
Mutual labels:  voting
Writetothem
Write to your MP, MEP, & other elected representatives.
Stars: ✭ 44 (-57.28%)
Mutual labels:  civic-tech
Voting Blockchain
A simple blockchain-based voting system application built from scratch by Python. It's available for running with multipeer.
Stars: ✭ 26 (-74.76%)
Mutual labels:  voting
Nosdeputes.fr
Repository of NosDéputés.fr : the french parliamentary monitoring website
Stars: ✭ 69 (-33.01%)
Mutual labels:  civic-tech
Transit
This Python module polls transit agencies for real-time bus arrival predictions.
Stars: ✭ 6 (-94.17%)
Mutual labels:  civic-tech
Od
Česká otevřená data
Stars: ✭ 99 (-3.88%)
Mutual labels:  civic-tech
Learn Solidity
Code base for "Learn Solidity: Programming Language for Ethereum Smart Contracts" course in Tosh Academy & Blockchain Council
Stars: ✭ 44 (-57.28%)
Mutual labels:  voting
Covid19italia
Condividiamo informazioni e segnalazioni sul COVID19
Stars: ✭ 78 (-24.27%)
Mutual labels:  civic-tech
Fixmystreet Mobile
Cordova application for making reports to FixMyStreet
Stars: ✭ 40 (-61.17%)
Mutual labels:  civic-tech
Codeforokc
Public web site for Code for OKC
Stars: ✭ 11 (-89.32%)
Mutual labels:  civic-tech
Votenet
Deep Hough Voting for 3D Object Detection in Point Clouds
Stars: ✭ 1,183 (+1048.54%)
Mutual labels:  voting
Vets Api
API powering VA.gov
Stars: ✭ 95 (-7.77%)
Mutual labels:  civic-tech
Decidim
The participatory democracy framework. A generator and multiple gems made with Ruby on Rails
Stars: ✭ 894 (+767.96%)
Mutual labels:  civic-tech
Hellovoter
HelloVoter App Suite. Contact your Reps. Canvass for any cause at zero cost.
Stars: ✭ 31 (-69.9%)
Mutual labels:  civic-tech
Pldp
Public Life Data Protocol
Stars: ✭ 56 (-45.63%)
Mutual labels:  civic-tech
Votr
🌟 A polling application built with Flask and React
Stars: ✭ 100 (-2.91%)
Mutual labels:  voting
Democracy Client
DEMOCRACY App Client
Stars: ✭ 98 (-4.85%)
Mutual labels:  voting

councilor-voter-guide

議員投票指南
文件

原則 Principle

  • 預設皆開源
    Open source by default.

  • 不做家長式的媒體,不做議題上的價值高下判斷、排名
    No paternalism.

  • 如要引入非政府公開資訊,必需是全民可參與編輯協作的或是候選人、民代、政黨自行編輯的
    There is a necessary requirement to include nonofficial data:

    • All citizen could cooperate these data.
    • These data are publish by candidates, councilors themself.

Project Layout

In Ubuntu 14.04 LTS

Website (Python/Django)

0.1 install basic tools

sudo apt-get update
sudo apt-get upgrade
sudo reboot
sudo apt-get install git python-pip python-dev python-setuptools postgresql libpq-dev
sudo easy_install virtualenv

0.2 set a password in your database(If you already have one, just skip this step)

sudo -u <username> psql -c "ALTER USER <username> with encrypted PASSWORD 'put_your_password_here';"

e.g.

sudo -u postgres psql -c "ALTER USER postgres with encrypted PASSWORD 'my_password';"

Clone source code from GitHub to local

It is quite big now. please be patient. don't use command like git --depth

git clone https://github.com/g0v/councilor-voter-guide.git       
cd councilor-voter-guide/voter_guide/

Start virtualenv and install packages

(if you don' mind packages installed into your local environment, just pip install -r requirements.txt)

virtualenv --no-site-packages venv      
. venv/bin/activate        
pip install -r requirements.txt     

Create db & restore data

We use Postgres 9.5, please set your database config in voter_guide/local_settings.py.
Please create a database(e.g. voter_guide), below will use voter_guide for example

createdb -h localhost -U <username> voter_guide
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U <username> -d voter_guide local_db.dump

runserver

python manage.py runserver

Now you should able to see the web page at http://localhost:8000

Dumpdata(optional)

python manage.py dumpdata --exclude auth.permission --exclude contenttypes > db.json

Mac Related Instructions

Prepare Compiler

There are some python package written in C or C++ such as lxml. so a compiler is required. you can install a compiler via the following command:

xcode-select --install

Prepare PostgreSQL

You can install the packaged app here. put the app in your Application folder and click it to start.

And please add the following line to your ~/.bash_profile

export PATH=/Applications/Postgres.app/Contents/Versions/9.3/bin/:$PATH

please change the version number 9.3 if you download a different version of PostgreSQL.

after you add the PATH environment variable, source it.

source ~/.bash_profile

if you don't add the PATH variable, installation of psycopg2 will not success.

Web Docker c3h3 / g0v-cvg-web

How to use this images

First Step: Download and Extract pgdata

git clone https://github.com/c3h3/g0v-cvg-pgdata.git && cd g0v-cvg-pgdata && tar xfzv 47821274c242ce68f2d8d18d4bb0d050d6481311.tar.gz
  • After that, you will get pgdata dir.
  • Assume pgdata's absolute path is "your_pgdata"

Second Step: RUN postgres with pgdata

docker run --name pgdb -v your_pgdata:/var/lib/postgresql/data postgres:9.3

If you want to use pgadmin connect with your db, you could also forwarding the port out ... with command ...

docker run --name pgdb -p 5432:5432 -v your_pgdata:/var/lib/postgresql/data postgres:9.3
  • "your_pgdata" is pgdata's absolute path in previous step.

Third Step: RUN web linked with pgdb

docker run --name g0v-cvg-web --link pgdb:postgres -p port_on_host:8000 -d c3h3/g0v-cvg-web

Crawler Docker c3h3 / g0v-cvg-crawler

How to use this images

Run Scarpy Server:

docker run --name g0v -p forward_port:6800 -v outside_items:/items -v outside_logs:/logs -d c3h3/g0v-cvg-crawler
  • "forward_port" is the port you want to forward into docker image (EXPOSE 6800)
  • "outside_items" is the directory you want to mount into docker image as /items
  • "outside_logs" is the directory you want to mount into docker image as /logs

Link Scarpy Server for Deploy and Submit Job:

docker run --link g0v:g0v -it c3h3/g0v-cvg-crawler /bin/bash

Example of Deploy ttc:

in a running docker instance which linked with g0v (Scarpy Server), you can use the following command to deploy tcc crawler to server:

cd /tmp/g0v-cvg/crawler/tcc && python deploy.py

Example of Crawl ttc.bills :

in a running docker instance which linked with g0v (Scarpy Server), you can use the following command to deploy tcc crawler to server:

cd /tmp/g0v-cvg/crawler/bin && python crawl_tcc_bills.py

CC0 1.0 Universal

CC0 1.0 Universal
This work is published from Taiwan.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].