Skip to content

The Offgrid Market Opportunities tool developed by IFC and the World Bank.

License

Notifications You must be signed in to change notification settings

energy-data/market-opportunities

Repository files navigation

Offgrid Market Opportunities tool

Identify market opportunities for off-grid energy services in Sub-Saharan Africa.

Development environment

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

  • Node (v4.2.x) & Npm (nvm usage is advised)

The versions mentioned are the ones used during development. It could work with newer ones.

After these basic requirements are met, run the following commands in the website's folder:

$ npm install

Gulp for building

There are two commands, both run via npm.

  • npm run build or gulp - clean & build everything and put it into dist folder
  • npm run serve or gulp serve - Compiles the sass files, javascript, and launches the server making the site available at http://localhost:3000/. The system will watch files and execute tasks whenever one of them changes. The site will automatically refresh since it is bundled with livereload.

standard for linting

We're using standard for linting.

  • npm run lint - will run linter and warn of any errors.

Other commands

  • npm run collections - create icon font