An open API service indexing awesome lists of open source software.

https://github.com/gilyes/env-impact-comparison

Wordpress plugin for environmental impact comparison between selected vehicles.
https://github.com/gilyes/env-impact-comparison

environmental-impact react redux wordpress

Last synced: 5 months ago
JSON representation

Wordpress plugin for environmental impact comparison between selected vehicles.

Awesome Lists containing this project

README

          

## Environmental Impact Comparison Between Selected Vehicles

WordPress plugin that displays and compares the environmental impact of various electric and gas vehicles based on Alberta Electric System Operator (AESO) data ().

### Installation

* Download latest release from
* Upload and activate plugin.
* On the plugin's Settings page upload CSV files containing EV and ICE vehicle data.
* The format of these CSV files is: vehicle_name, consumption (number), picture_url, fuel_type ('G', 'D')
* Do not add header row to CSV.
* Add the shortcode `[env-impact-comparison]` to a page.

### Development

The functionality is implemented as a React/Redux application:

* The source for this is in the `/app` directory.
* The plugin uses the production build which is generated in `/app/dist`.

#### Building the React app

**NOTE:** [Node.js](https://nodejs.org) is required to build the app.

To build for production:

```bash
cd app
npm run build
```

To run in dev mode:

```bash
cd app
npm start
```

#### Packaging the plugin

```bash
./package.sh
```

### Used by
http://www.albertaev.ca/why-electric/