Global Mangrove Watch (GMW) is an online platform that provides the remote sensing data and tools for monitoring mangroves necessary for this. It gives universal access to near real-time information on where and what changes there are to mangroves across the world, and highlights why they are valuable.
Requirements:
This platform is built upon Vizzuality's scaffold project and it's using the following resources:
In order to start modifying the app, please make sure to correctly configure your workstation:
nvm use
; if you didn't install NVM (step 2), then manually install the Node.js version described in .nvmrc
yarn
yarn dev
You can access a hot-reloaded version of the app on http://localhost:3000.
First, we recommend to read the guideline about how to use Vercel.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out the Next.js deployment documentation for more details.
Please, create a PR for any improvement or feature you want to add. Try not to commit anything directly on the main
branch.
Dependabot's vulnerability security alerts are configured in this repository and are displayed to the administrators.
When vulnerabilities are detected, a warning message is displayed at the top of the repository. The list of alerts can be found on the Dependabot alerts page.
Here's a step-by-step guide on how to address vulnerabilities found in production code:
yarn npm audit --recursive --environment production
npm_config_yes=true npx yarn-audit-fix --only prod
yarn-audit-fix
(see repository) is a tool that applies the fixes from npm audit fix
to Yarn installationsVariable name | Description | Default value |
---|---|---|
NEXT_PUBLIC_API_URL | URL of the API for widgets Data. | http://localhost:3000 |
NEXT_PUBLIC_ANALYSIS_API_URL | URL of the API for the Analysis tool. | http://localhost:3000 |
NEXT_PUBLIC_MAPBOX_API_TOKEN | Mapbox token. | |
NEXT_PUBLIC_GA_ID | Google Analytics Tracking ID | G-JMJEG8GFH6 |
NEXT_PUBLIC_PLANET_API_KEY | URL of the Planet API. | |
NEXT_PUBLIC_BASE_URL | Based URL of the project. | |
NEXT_PUBLIC_TRANSIFEX_API_KEY | URL of the Transifex API. | |
NEXT_PUBLIC_BLOG_API_URL | URL of the API for WordPress content. |