Open Sustainable Technology

A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

Browse accepted projects | Review proposed projects | Propose new project | Open Issues

Plant-for-the-Planet

Allows you to plant trees with over 100 reforestation projects around the world.
https://github.com/Plant-for-the-Planet-org/planet-webapp

climate-change nextjs plant reforestation trillion-trees

Last synced: about 11 hours ago
JSON representation

Repository metadata

The Open Source and Commission Free Application that powers the Trillion Tree Campaign. Visit us to meet reforestation Organizations, individuals and companies who are on a journey to plant, monitor and restore a trillion trees.

README

        





PFP Page.














[![CodeFactor](https://www.codefactor.io/repository/github/plant-for-the-planet-org/planet-webapp/badge)](https://www.codefactor.io/repository/github/plant-for-the-planet-org/planet-webapp)
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/Plant-for-the-Planet-org/planet-webapp/tree/main)

---

## Directory Structure

pages - All the routes


  • _app = Page initializations of the project

  • _document = A custom Document is commonly used to augment your application's html and body tags.

  • 404 = Default 404 page if the route is not found

  • Project pages -




  • #
    Page Name
    Route
    Functionality


    1
    index.tsx
    /
    Home page of the app with all the projects in list and map


    2
    [id].tsx
    /project-id
    Page of single project which loads all the details of the same


    3
    about.tsx
    /about
    About the organization


    4
    leaderboard.tsx
    /leaderboard
    Showcases the top donors from around the world


    5
    me.tsx
    /me
    User's private profile


    6
    t/[id].tsx
    /t/tpo-id
    TPO's profile


public - Assets


  • tenants = Assets of all the tenants

  • assets = All the images and image components

  • And other public assets.

src - Source code


  • features = Project features are present here

  • tenants = Tenant specific features are present here

  • theme = Theme scss files

  • utils = Utility functions

---

## Configuration

### Environment Setup

Rename `env.local.sample` to `env.local` and add the necessary keys

---

## Development

### Run the development server

```bash
npm install --legacy-peer-deps
npm run dev
# or
yarn dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. The page auto-updates as you edit the file.

---

## Development Process

This project uses GitFlow (https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow) with Master-Branch `master` and Development-Branch `develop`. The Master-Branch will be automatically released by Vercel bot to the production system. There are currently some more protected branches also build by Vercel bot automatically and mapped to test backends using the branch name as subdomain.

---

## Reporting a Vulnerability

If you have found a vulnerability, you could write us at: [email protected] with details or create a PR for the fix.

## Important Links

[Demo Deployment](https://dev.pp.eco/)

[Designs & Prototype](https://xd.adobe.com/view/8f1c5110-4d7d-445d-8283-8eb1674ce2e4-da4f/)

[Backend APIs](https://plant-for-the-planet.stoplight.io/docs/treecounter-platform/)

## Thank You

The deployment and management of this application is possible with support from open source contributors and following partners.


      

## Legal

Any brand-images/logo/iconography used in this project, including of Plant-for-the-Planet, are registered trademark(s) of respective parties.

[Trillion Tree Campaign icon](https://www.trilliontreecampaign.org/tenants/ttc/logo.png) is available under Creative Commons CC BY-NC-ND.

Please contact partner[at]plant-for-the-planet[dot]org for approval to use the Plant-for-the-Planet Logo.


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 27 days ago

Total Commits: 5,321
Total Committers: 33
Avg Commits per committer: 161.242
Development Distribution Score (DDS): 0.827

Commits in past year: 1,033
Committers in past year: 13
Avg Commits per committer in past year: 79.462
Development Distribution Score (DDS) in past year: 0.696

Name Email Commits
Harsh Vitra j****4@g****m 918
Sarvesh Warge s****e@g****m 790
mohitb35 4****5 688
Norbert Schuler n****r@e****e 470
sunilsabatp 1****p 387
prachigarg19 7****9 338
Shreyas Chorge s****1@g****m 335
Nirali Parekh n****h@g****m 295
Rishabh r****h@g****m 237
snyk-bot s****t@s****o 203
Sagar Aryal s****r@a****e 166
prachigarg19 p****3@g****m 99
Bright Amidiagbe c****1@g****m 85
Ankit Gupta a****9@g****m 70
deadlinc n****k@l****m 50
Tejas Sonar t****7@g****m 41
Harsh Vitra h****a@g****m 36
Maria Hosfeld m****d@p****g 20
Louis Alemar l****s@l****m 17
Sagar Aryal s****l@p****g 15
dependabot[bot] 4****] 12
codefactor-io s****t@c****o 12
Plant-for-the-Planet i****t@p****g 10
Jackson Garner j****r@s****m 8
Harsh Vitra h****a@H****l 6
Sarvesh Warge s****e@p****g 3
adityasabat34 a****4@g****m 2
Vitaly Tomilov v****t 2
Jimin Mun j****n@s****m 2
mariahosfeld 8****d 1
and 3 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 60
Total pull requests: 221
Average time to close issues: over 2 years
Average time to close pull requests: 27 days
Total issue authors: 9
Total pull request authors: 10
Average comments per issue: 0.73
Average comments per pull request: 2.12
Merged pull request: 158
Bot issues: 27
Bot pull requests: 27

Past year issues: 19
Past year pull requests: 214
Past year average time to close issues: 3 months
Past year average time to close pull requests: 17 days
Past year issue authors: 3
Past year pull request authors: 10
Past year average comments per issue: 0.26
Past year average comments per pull request: 2.04
Past year merged pull request: 157
Past year bot issues: 0
Past year bot pull requests: 27

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/Plant-for-the-Planet-org/planet-webapp

Top Issue Authors

  • sentry-io[bot] (27)
  • mohitb35 (17)
  • norbertschuler (6)
  • harshvitra (3)
  • sagararyal (2)
  • Shreyaschorge (2)
  • Plant-for-the-Planet (1)
  • prachigarg19 (1)
  • sarveshpro (1)

Top Pull Request Authors

  • prachigarg19 (58)
  • mohitb35 (56)
  • mariahosfeld (34)
  • sunilsabatp (17)
  • dependabot[bot] (15)
  • lingohub[bot] (12)
  • norbertschuler (10)
  • Shreyaschorge (9)
  • sagararyal (8)
  • snyk-bot (2)

Top Issue Labels

  • bug (45)
  • sentry (26)
  • enhancement (6)
  • Should we close this? (4)
  • refactor (1)
  • backend (1)

Top Pull Request Labels

  • PR: reviewed-approved (85)
  • dependencies (21)
  • PR: unreviewed (15)
  • PR: merged (13)
  • PR: draft (9)
  • blocked (8)
  • Next in line (7)
  • PR: reviewed-changes-requested (5)
  • Should we close this? (2)
  • bug (1)
  • Priority (1)
  • PR: partially-approved (1)
  • duplicate (1)

Dependencies

package-lock.json npm
  • 1207 dependencies
package.json npm
  • @emotion/babel-plugin ^11.9.2 development
  • @emotion/eslint-plugin ^11.7.0 development
  • @types/d3-ease ^1.0.9 development
  • @types/node ^14.0.26 development
  • @types/react ^16.9.43 development
  • @types/react-map-gl ^5.2.7 development
  • @types/styled-jsx ^2.2.8 development
  • @types/uuid ^8.3.0 development
  • @typescript-eslint/eslint-plugin ^4.1.1 development
  • @typescript-eslint/parser ^4.1.1 development
  • axios ^0.21.1 development
  • babel-core ^6.26.3 development
  • cross-env ^7.0.2 development
  • cypress ^8.5.0 development
  • cypress-plugin-stripe-elements ^1.0.2 development
  • eslint ^7.9.0 development
  • eslint-config-airbnb ^18.2.0 development
  • eslint-config-prettier ^6.11.0 development
  • eslint-plugin-cypress ^2.12.1 development
  • eslint-plugin-import ^2.22.0 development
  • eslint-plugin-jsx-a11y ^6.3.1 development
  • eslint-plugin-prettier ^3.1.4 development
  • eslint-plugin-react ^7.20.6 development
  • eslint-plugin-react-hooks ^4.1.2 development
  • next-unused 0.0.6 development
  • prettier ^2.0.5 development
  • typescript ^4.3.2 development
  • @auth0/auth0-react ^1.6.0
  • @date-io/date-fns 1.3.13
  • @emotion/react ^11.9.0
  • @emotion/styled ^11.8.1
  • @mapbox/mapbox-gl-draw ^1.3.0
  • @mapbox/togeojson ^0.16.0
  • @math.gl/web-mercator ^3.5.3
  • @mui/lab ^5.0.0-alpha.77
  • @mui/material ^5.6.1
  • @mui/styles ^5.6.1
  • @next/bundle-analyzer ^10.2.3
  • @sentry/browser ^6.15.0
  • @sentry/integrations ^6.19.2
  • @sentry/node ^6.19.2
  • @sentry/webpack-plugin ^1.18.3
  • @turf/turf ^5.1.6
  • @types/react-gtm-module ^2.0.1
  • @types/react-lazyload ^2.6.0
  • d3-ease ^2.0.0
  • date-fns ^2.27.0
  • deck.gl ^7.3.6
  • dom-to-image ^2.6.0
  • express ^4.17.1
  • framer-motion ^2.9.5
  • geocoder-arcgis ^2.0.5
  • geojson-flatten ^1.0.4
  • geojson-validation ^1.0.2
  • i18next ^19.9.2
  • i18next-browser-languagedetector ^6.1.2
  • jwt-decode ^3.1.2
  • layer-manager ^3.0.11
  • luma.gl ^7.3.2
  • mapbox-gl ^1.13.0
  • mapbox-gl-compare ^0.4.0
  • moment ^2.29.2
  • next ^11.1.4
  • next-compose-plugins ^2.2.1
  • next-i18next ^6.0.3
  • next-useragent ^2.7.0
  • papaparse ^5.3.1
  • path-browserify ^1.0.1
  • prop-types ^15.7.2
  • react ^17.0.2
  • react-content-loader ^5.1.4
  • react-dom ^17.0.2
  • react-dropzone ^11.4.0
  • react-gtm-module ^2.0.11
  • react-hook-form ^6.15.8
  • react-i18next ^11.16.10
  • react-insta-stories ^2.2.5
  • react-json-editor-ajrm ^2.5.13
  • react-lazyload ^3.2.0
  • react-map-gl 5.3.16
  • react-mapbox-gl ^5.1.0
  • react-mapbox-gl-draw ^2.0.4
  • react-player ^2.8.2
  • read-more-react ^1.0.10
  • sass ^1.52.0
  • styled-jsx ^3.4.7
  • uuid ^8.3.2
  • vizzuality-components ^3.0.3
.github/workflows/chromatic.yml actions
  • actions/checkout v1 composite
  • chromaui/action v1 composite
.github/workflows/codeql-analysis.yml actions
  • actions/checkout v2 composite
  • github/codeql-action/analyze v1 composite
  • github/codeql-action/autobuild v1 composite
  • github/codeql-action/init v1 composite
.github/workflows/cypress.yml actions
  • actions/checkout v2 composite
  • actions/upload-artifact v2 composite
.github/workflows/eslint.yml actions
  • actions/checkout v2 composite

Score: 7.973844375944687