• Stars
    star
    268
  • Rank 152,299 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 12 years ago
  • Updated 26 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Global Forest Watch: An online, global, near-real time forest monitoring tool

What is Global Forest Watch?

Global Forest Watch (GFW) is a dynamic online forest monitoring and alert system that empowers people everywhere to better manage forests. This repository contains the GFW web app.

Global forest watch map

Getting started

The GFW web app is built with Nextjs, React and Redux.

Installing the app

Clone the repo:

$ git clone https://github.com/Vizzuality/gfw.git

Installing dependencies:

$ yarn

Copy the .env.sample to .env.local, and start the server:

$ yarn dev

The app should now be accessible on http://0.0.0.0:3000.

Developing

We follow a Gitflow Worklow for development and deployment.
We merge pull requests into develop, which is deployed automatically to both the staging and pre-production servers. In order to release features into production, we merge develop into master, triggering an automatic deployment to production.

gitflow workflow

Staging, pre-production and review apps

We use Heroku to deploy our apps. Production is deployed automatically from master to globalforestwatch.org.

We have two staging environments: staging and pre-production. Both are deployed automatically from develop.
The main difference is that staging points to the staging environments of the APIs we access, pre-production points to the production ones. This is set by the NEXT_PUBLIC_FEATURE_ENV env variable.

We also make use of Heroku's Review Apps feature.
When a pull request is created, a review app is deployed automatically by Heroku with a NEXT_PUBLIC_FEATURE_ENV of preproduction, and a link to the environment is added automatically to the respective pull request.

Releases

We are using github releases to record changes to the app. To help us manage this we are using Zeit Releases, an npm package for handling github releases, tagging commits (major, minor, patch), and automating semantic release logs. For a more detailed explanation of semantic changelogs see this post.

Managing commits for a release

When developing, you can tag your commits as follows: fix some excellent bug (patch) where patch can be (major/minor/patch/ignore). This commit title will automatically be grouped into the correct section for the release. Otherwise you will be prompted during the release to assign (or ignore) each of your commits. You will have to do this for every commit so don't forget to squash!

So how do you make a release on GFW?

  1. Checkout master and merge in develop (not compulsory but advised for consistency).
  2. Run npx release [type] where type can be major, minor, patch, or pre (see zeit docs for more details).
  3. Follow the prompts to manage commits.
  4. You will be taken to github draft release editor with all your commits grouped and ready to go.
  5. Enter your title and include any extra info you want.
  6. Publish!

RW API Documentation for GFW

Map layers and relevant datasets are stored in the RW-API and the globalforestwatch.org/map utilises the layer-manager to render them.

The schema used to style these layers, their legends, and define their interactions are specific to the Global Forest Watch platform.

When creating or modifying layers/datasets for GFW, follow the schema and syntax outlined in the API Documentation markdown file.

To view GFW-specific layers and datasets use the following endpoint:

https://api.resourcewatch.org/v1/dataset?app=gfw&includes=layer,vocabulary,metadata&page[size]=200

BrowserStack

We use BrowserStack to find and fix cross-browser issues.

More Repositories

1

global-power-plant-database

A comprehensive, global, open source database of power plants
HTML
317
star
2

sentinel-tree-cover

Image segmentations of trees outside forest
Jupyter Notebook
160
star
3

carbon-budget

Calculate gross GHG emissions, gross carbon removals (sequestration), and net flux from forests globally
Python
76
star
4

gfw-mapbuilder

Template for the GFW Map Builder that is available through ArcGIS Online, as a stand-alone web application, & a library to build custom Forest Atlas web applications
TypeScript
32
star
5

UrbanLandUse

Characterizing urban land use with machine learning
Jupyter Notebook
27
star
6

demographic-identifier

Deep learning approach to identifying demographics and topics of tweets
Jupyter Notebook
25
star
7

aqueduct30_data_download

Make the Aqueduct 3.0 database available for download
Jupyter Notebook
19
star
8

rw-dynamicworld-cd

A repository holding code and example notebooks for change detection methodology for the Dynamic World Land Cover product.
Jupyter Notebook
19
star
9

gfw-fires-app

The Global Forest Watch Fires app
JavaScript
14
star
10

Aqueduct30Docker

add readme.md
Jupyter Notebook
13
star
11

raster2points

CLI to convert raster data to points (CSV or Pandas Dataframe)
Python
11
star
12

ReservoirWatchHack

11
star
13

UrbanHeatMitigation

Estimating surface reflectivity for multiple urban areas in the United States using machine learning
Jupyter Notebook
11
star
14

charm-global-level

CHARM, a model that estimates the GHG impacts and land-use requirements of forestry
Python
10
star
15

gfw-data-api

GFW Data API
Python
10
star
16

ev-simulator

Python code backing WRI technical note "Simulator to Quantify and Manage Electric Vehicle Load Impacts on Low-voltage Distribution Grids"
Python
10
star
17

gfw_forest_loss_geotrellis

Global Tree Cover Loss Analysis using Geotrellis and SPARK
Scala
10
star
18

Aqueduct40

Aqueduct 4.0 data and methodology
Jupyter Notebook
8
star
19

gfw-raster-analysis-lambda

GFW Raster Analysis in AWS Lambda
Python
8
star
20

cities-urbanshift

Jupyter Notebook
8
star
21

retrieveR

A system for automating information retrieval from a corpus of documents
HTML
7
star
22

gee_toolbox

A convenience module and command line tool for GEE.
Python
6
star
23

aqueduct-components

Aqueduct components is a collection of React components shared with all Aqueduct tools.
JavaScript
6
star
24

wri-bounds

Country shapefiles and boundaries for WRI
Makefile
6
star
25

gfw-analysis

GFW Analysis
Python
5
star
26

gfw_pixetl

GFW ETL for raster tiles
Python
5
star
27

gfw-sync2

Tools to manage pushing source data to the GFW Platform
Python
5
star
28

gppd-ai4earth-api

A package for ML models that estimate plant-level annual generation
Python
5
star
29

cities-cities4forests-indicators

Jupyter Notebook
4
star
30

ndc

Climate Watch Explore NDCs module. Full text of NDCs in HTML coding.
HTML
4
star
31

mmdetection-satellite-dinov2

mmdetection-satellite-dinov2
Jupyter Notebook
4
star
32

wri-scl-data-public

Systems Change Lab public data repository
3
star
33

fti_api

OPEN TIMBER PORTAL API
Ruby
3
star
34

gfw-tile-cache

GFW Tile Cache Service
Python
3
star
35

gfw-datapump

Nightly batch process to generate summary statistics for user AOIs
Python
3
star
36

ForestAtlasToolbox

Python Toolbox to translate domains, dataset alias, field alias and subtypes and manage metadata
Python
3
star
37

glad-raster-analysis-lambda

POC of using AWS Lambda + Rasterio for raster calculations on S3
Python
3
star
38

cities-cif

Jupyter Notebook
3
star
39

gfw-places-to-watch

Generate new places to watch data when GLAD is updated
Python
3
star
40

gfw-forestlearn

A repository to hold code and examples for binary classification and regression relating to two AI4Earth projects: Mapping Global Carbon Mitigation and Predicting Future Deforestation in the Congo Basin
Jupyter Notebook
3
star
41

MAPSPAM

Process MAPSPAM data and make available in additional formats.
Jupyter Notebook
2
star
42

glad_tiles_pipeline

Pipeline for GLAD tile processing
Python
2
star
43

cities-dataportal-hazards

Jupyter Notebook
2
star
44

wri-list-tools

Python tools for analyzing large data lists.
Python
2
star
45

jurisdictional-risk

Python
2
star
46

wri-terramatch-website

README info goes here :)
TypeScript
2
star
47

zonal-stats-app

Python
2
star
48

gfw-water

JavaScript
2
star
49

otp-observations-tool

TypeScript
2
star
50

dl_jobs

CLI and Helper modules for managing Descartes Labs Tasks
Python
2
star
51

wri-terramatch-api

PHP
2
star
52

comms-dev-documentation

Documentation and notes for dev projects
JavaScript
2
star
53

tree_canopy_fcn

tree canopy predictions
Python
2
star
54

hansen_ee_processing

scripts for post processing hansen data on ee
Python
2
star
55

wri_sites

WRI profile
SCSS
2
star
56

gfw-iac-workshop

Materials needed for exercises associated with a Terraform/Infrastructure as Code workshop for the World Resources Institute (WRI).
HCL
2
star
57

earth-dashboard

JavaScript
2
star
58

gfw-commodities-app

Global Forest Watch Commodities app
JavaScript
2
star
59

template-python

Template repository for python-based projects
Makefile
2
star
60

global-pasture-watch

Python
2
star
61

wri-wpsi

The Water, Peace and Security partnership website
Ruby
2
star
62

cities-indicators-dashboard-urbanshift

R
1
star
63

harvest-fires

harvest fires in the last 24 hours and upload to cartodb
Clojure
1
star
64

gfw-mapbuilder-georspo

JavaScript
1
star
65

biomass_tiles

GFW Climate: Biomass tiles
Python
1
star
66

gfw_forest_loss_geotrellis_arcpy_client

Arcpy client for GFW Forest Loss Analysis
Python
1
star
67

cities-OpenUrban

R
1
star
68

GlobAgri-WRR-Expansion

Python
1
star
69

cities-heat-workspace

Jupyter Notebook
1
star
70

odp_front_end

HTML, CSS, JavaScript code to build a workable UI for the GFW Open Data Portal
CSS
1
star
71

spotutil

CLI tool to create a spot worker on AWS and launch processes
Python
1
star
72

gfw-components

React component library for the Global Forest Watch project
JavaScript
1
star
73

ira-eligibility-enhancements

HTML
1
star
74

agriadapt

Web app for physical climate risk tool.
JavaScript
1
star
75

policy-toolkit

Massively multitask fine tuning of roBERTa for policy priority identification in unstructured text
Jupyter Notebook
1
star
76

glad-data-management

Update GLAD sqlite database, CSV exports and country stats
Python
1
star
77

gfw-country-pages-analysis-2

Enrich GLAD and Fire data with contextual information in Hadoop, upload results to GFW API
Python
1
star
78

gfw-dockerfiles

GFW Dockerfiles
Dockerfile
1
star
79

template-public-documentation

Template for MkDocs-based public documentation, including the deployment pipeline to host on GitHub Pages using GitHub Actions.
Makefile
1
star
80

cities-climatehazards-warmingscenarios

Jupyter Notebook
1
star
81

landmark

JavaScript
1
star
82

cities-socio-economic-vulnerability

R
1
star
83

UrbanTreeCanopy

Jupyter Notebook
1
star
84

gfw-aws-core-infrastructure

Terraform module for GFW Core infrastructure on AWS
HCL
1
star
85

cities-indicators

Jupyter Notebook
1
star
86

basemaps

WRI Basemaps
CartoCSS
1
star
87

ocean-watch

The Ocean Watch open data platform delivers science to policy makers developing sustainable ocean economies and operationalizing integrated ocean management.
JavaScript
1
star
88

urban_extent

urban extents from built-up
Python
1
star
89

natural-lands-map

Documentation for creating the Natural Lands Map for SBTN Target Setting
JavaScript
1
star