Giter VIP home page Giter VIP logo

infoamazonia / politica-do-desmatamento Goto Github PK

View Code? Open in Web Editor NEW
1.0 11.0 1.0 4.37 MB

Um olhar sobre era moderna do desmatamento aponta os sucessos e as falhas da estratégia oficial de combate à devastação da Amazônia brasileira.

Home Page: http://desmatamento.infoamazonia.org

License: MIT License

JavaScript 16.11% CSS 27.69% Shell 0.08% Dockerfile 0.45% Less 14.74% Pug 40.21% HTML 0.72%
deforestation amazon brazil journalism

politica-do-desmatamento's Introduction

A Política do Desmatamento

Quanto dinheiro é gasto pelo governo federal para preservar a Amazônia? Onde os recursos são investidos? Um olhar sobre era moderna do desmatamento aponta os sucessos e as falhas da estratégia oficial de combate à devastação da Amazônia brasileira.

Installation

Requirements

  • node v6.17.x
  • npm v3.10.10

Build and start server

Install dependencies:

$ npm install

Install napa dependencies

$ npm run install

Create dist folder and compile project

$ npm run predeploy

Access http://localhost:3002/

Watch files

$ npm run watch

Deploy app to GITHUB PAGES

$ npm run deploy

OBS: open src/CNAME and change domain if needed

RUNING WITH DOCKER

Install environment and dependencies

$ docker-compose build --no-cache

Starting docker

$ docker-compose up

Install napa dependencies (open docker bash and install)

$ docker-compose exec app bash
docker$ npm run install

Create dist folder and compile project (in docker bash)

docker$ npm run predeploy

Access http://localhost:3002/

Deploy app to GITHUB PAGES

docker$ npm run deploy

NOTES

  • If you use 2FA (2 factor authentication) on git hub, follow these steps.

  • When using docker you can use watch for save and auto compile files when developing. For this you have to copy dist and node_modules from docker to host and uncomment volumes in docker-compose.yml file. The steps are:

  1. Copy dist and node_modules from docker to host (when docker-compose is up and running using bash from host) $ docker cp $(docker-compose ps -q app):/home/node/app/node_modules . $ docker cp $(docker-compose ps -q app):/home/node/app/dist .

  2. Uncomment dist and node_modules folder from .dockerignore file

  3. Uncomment Volumes from docker-compose.yml

  4. docker-compose down

  5. docker-compose up

  6. Inside docker bash: docker-compose exec app bash

docker$ npm run watch

CREDITS

rafgraph for the 404.html redirect (rewrite rule for github pages). It works!
Natalie Cardot how to easily Deploy a Create React App Project to GitHub Pages.
Ginny Fahs how to authenticate on github with 2FA.
Paulo Campos at Studio Cubo Web for converting this site into github pages host

politica-do-desmatamento's People

Contributors

bwstefano avatar gufalei avatar miguelpeixe avatar pauloeducampos avatar studiocuboweb avatar thiago34 avatar thiagopaixao avatar vgeorge avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

gufalei

politica-do-desmatamento's Issues

possíveis mapas

Dar uma olhada nos dados do desmatamento (IBGE; PRODES; DETER que estão nestas camadas do MapBox). Acho que vale usar mesmo o MapBox para facilitar e mesmo porque estamos sem muito espaço no CartoDB

infoamazonia.deforestation-0-6,
infoamazonia.gxbw53jj,
infoamazonia.r0wqxgvi

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.