Skip to content

climatescope/climatescope.org

Repository files navigation

Climatescope

The Climatescope is a unique market-by-market assessment, interactive report and index that evaluates the investment climate for climate-related investment worldwide.

Homepage of the climatescope 2019

Credits

The current Climatescope website was built by Development Seed.

License content and data

The content and data of the Climatescope available under a Creative Commons license CC-BY 4.0.

License code

Copyright (c) 2014. Multilateral Investment Fund, Inter-American Development Bank.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Development

Install Project Dependencies

To set up the development environment for this website, you'll need to install the following on your system:

  • Node v8.11 (To manage multiple node versions we recommend nvm)
  • Yarn or Npm Package manager

Install Application Dependencies

If you use nvm, activate the desired Node version:

nvm install

Install Node modules:

yarn install

or

npm install

Once the dependencies are installed, you can run:

yarn export

or

npm run export

This will build the navigation, build the optimized images, build the next app, and export this app as a static website into the /out folder, which can then be deployed. Once you have exported the app, you can test it locally by running:

yarn serve

or

npm run serve

Javascript configurations and environment variables

In order to run the app, you will need to provide a site url and a mapbox token, as well as a mailchimp address. You can do this via a .env.local file.

SITE_URL=https://www.global-climatescope.org/
MAPBOX_TOKEN=
MAILCHIMP_ADDRESS=