analytics-ufcg/vereadorescg-site

Name: vereadorescg-site

Owner: Laboratório Analytics

Description: Site do Nossos Vereadores -- CG

Created: 2016-09-05 19:36:19.0

Updated: 2017-11-22 04:54:15.0

Pushed: 2017-04-17 01:28:42.0

Homepage: http://www.vereadorescg.cc

Size: 15491

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Nossos Vereadores

Dependências
Backend

R (>3.3):

cessário em máquinas ubuntu para instalar o R > 3.3
 'deb http://cran.rstudio.com/bin/linux/ubuntu trusty/' | sudo tee /etc/apt/sources.list.d/vereadores.list
 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9

 apt-get -y update
 apt-get -y install r-base

cessários para alguns dos pacotes que instalaremos
 apt-get -y install libcurl4-openssl-dev
 apt-get -y install libpq-dev

Todos os pacotes de R serão instalados assim que você abrir a primeira sessão R (o 'packrat' vai cuidar de tudo :)

Frontend

bundle install

Servir via RStudio

brocks::blog_serve()

Servir via Linha de Comando

Rscript -e 'brocks::blog_serve()'

Dados

É necessária a instalação do PostgreSQL, com senha e usuário padrão. Com o psql aberto, crie um banco de dados chamado camara_db.

CREATE DATABASE camara_db;

Os dados se encontram nesse repositório https://github.com/augustoqm/cg-insights-data. Baixe o dump mais recente e povoe o banco de dados criado.

psql camara_db < camara_db_dump_23-12-16_since_1985.dump


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.