The Global Forest Watch Fires app
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
declarations Updated kalendae version, added more Flux rules to our Flow declarations May 12, 2016
dist Fixed call to the API for adm1 Dec 14, 2018
i18n Updated region text change Sep 13, 2018
scripts Removed unused legacy .bat files Nov 23, 2015
src Fixed call to the API for adm1 Dec 14, 2018
.babelrc Added Flow type checking to the project May 5, 2016
.bowerrc Trying to get our build task to alert us properly Mar 21, 2016
.codeclimate.yml added boilerplate for redesign app Nov 16, 2015
.editorconfig Updated REAMDE.md todos Jan 25, 2016
.eslintrc Updated our eslint rules for twitter Jan 18, 2017
.flowconfig Adding esri and dojo to the flowconfig May 5, 2016
.gitignore ignoring webpack folder from webpack branch Dec 12, 2017
.htaccess undo Jul 24, 2018
Procfile update procfile Mar 31, 2016
README.md Merged branch develop into master, updated gfw-staging to gfw.bluraster May 24, 2017
bower.json upgraded geostats Sep 14, 2018
composer.json Updated Composer PHP json Jan 5, 2018
composer.lock Updated composer lock Jan 5, 2018
gulpfile.js Removed vulnerable dependency Jan 4, 2018
package-lock.json npm audit & npm audit fix Aug 8, 2018
package.json Showing the last month for the current year in the fire history figure Dec 14, 2018
robots.txt Added robots to www folder on deploy Apr 26, 2016
sitemap.xml Modified htcaccess and sitemap.xml May 1, 2018
todos.md Copied content from multipage to single page Nov 24, 2015

README.md

GFW-Fires

Please read this before beginning development to learn how to get started and how to change some simple components of the application.

Quickstart

  • install node.js
  • clone this repo git clone git@github.com:wri/gfw-fires-app.git
  • cd into repo folder > cd gfw-fires-app
  • install dependencies > npm install, bower dependencies will automatically install
  • start serving and build > npm run start
  • visit localhost:3000/en/home

Development

TODO

Project requirements

  • IE10+

Architecture overview

Npm scripts

Build Process

Configurations

Language

This application is intended to be available in both english and indonesian, all text that should be translated should be in the correct locals file found in the i18n folder.

Environment Variables

TODO

Git Workflow

Main Development

Developers should aim to stay close to the latest version of the development branch. Small fixes and tweaks are appropriate as small commits that are made directly to the develop branch. Anything sizeable should be a focused (affecting only relevant files to avoid conflicts) and well named feature branch that is properly merged back and deleted upon completion.

Continuous Integration off Master

Production for this application is a Heroku LAMP dynamo that is configured to watch for changes to the master branch. Upon merging develop into master or pushing to master, it will build the latest version of the app and re-host automatically. This automatic update will take a moment because build/dist artifacts are not committed, the dynamo is configured to install node dependencies, install bower dependencies, and compile the app dist for hosting.

Versioning

TODO

App Pages

  • Map - http://localhost:3000/map/
  • Report - http://localhost:3000/report
NOTE: DO NOT UNDER ANY CIRCUMSTANCES COMMIT ANY CREDENTIALS OF ANY KIND

TODO

  • fix inconsistent carousel loading (Slick not a function)

  • layers

  • meta api infowindows

  • timeline

  • transparency dropdowns

  • print

  • fix land use counter

  • honeypots - analysis, subscription, story submit

  • google analytics events

  • .htaccess redirects (/ -> /en/home, /en/ -> /en/home)

  • verify and delete unused remote branches (KarlaRenschler-patch-1, Lucas, popup-enhance)

  • set code up as heroku-deployable

  • update media query variables from mobile mobile-small to tablet and mobile (bojan knows about this)

  • analysis submit functionality

  • indonesian translation plan:

    • use node and transifex to translate i18n/en/locals.js strings and save them to i18n/id/locals.js
    • to keep things simple, it's recommended to make this a manual script that is only run on version update deployments when text has been added
  • completed:

    • search widget functionality
    • integrated versioning
    • cleanout reference www
    • percentage in peatland fires on home carousel
    • sourcemaps for styl & js