The website of Climatescope
Branch: master
Clone or download
Devseed-CI
Devseed-CI Update Climatescope data
  Automatically generated based on commits in the repository climatescope/cs-datapipeline
Latest commit a5e6b63 Feb 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.bundle Global cleanup for version 2018 Oct 3, 2018
.circleci
app Update Climatescope data Feb 18, 2019
.eslintrc
.gitignore
.nvmrc Global cleanup for version 2018 Oct 3, 2018
Gemfile
Gemfile.lock
LICENSE Global cleanup for version 2018 Oct 3, 2018
README.md
_config-stage.yml
_config.yml
_prose.yml Misc fixes Nov 25, 2018
gulpfile.js
package.json
yarn.lock Include Autoprefixer Jan 7, 2019

README.md

Climatescope

The Climatescope is a unique country-by-country assessment, interactive report and index that evaluates the investment climate for climate-related investment worldwide. It is a project by BNEF, UK AID, and developed by Development Seed. Previous editions were also supported by Power Africa, and the Multilateral Investment Fund.

Homepage of the climatescope 2015

Credits

The current Climatescope website was built by Flipside in collaboration with 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 Package manager
  • Ruby and Bundler. Highly suggest using rvm

Install Application Dependencies

If you use nvm, activate the desired Node version:

nvm install

Install Node modules:

yarn install

This will then automatically run bundle install to install the ruby gems.

Jekyll configurations and environment variables

There are 3 files to configure jekyll that get loaded according to the environment the app is being built for:

  • _config.yml - production settings
  • _config-stage.yml - overrides the production settings for staging server
  • _config-dev.yml - local (development) overrides. This file is gitignored, so you can safely change it without polluting the repo.

Javascript configurations and environment variables

At times, it may be necessary to include options/variables specific to production, staging or local in the code. To handle this, there is a master config.js file. This file should not be modified. Instead, modify one of:

  • config/production.js - production settings
  • config/staging.js - overrides the production settings for staging server
  • config/local.js - local (development) overrides. This file is gitignored, so you can safely change it without polluting the repo.

By default production.js is always loaded and values are overridden by staging.js or local.js according to the environment.

Values overridable by environment variables are expressed between []:

  • appTitle - Title of the site
  • appEdition - Edition of the site
  • appDescription - Description of the site for meta purposed
  • policyDbUrl - Url for the Policy database
  • mediumLatestUrl - Url for the medium script
  • gaTrackingID - Google analytics tracking ID [GA_TRACKING_ID]
  • mailchimpUrl - Url for the mailchimp list subscription [MAILCHIMP_URL]
  • mbtoken - Mapbox token [MB_TOKEN]