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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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 :)
bundle install
Servir via RStudio
brocks::blog_serve()
Servir via Linha de Comando
Rscript -e 'brocks::blog_serve()'
É 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