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.
- Host: GitHub
- URL: https://github.com/gilyes/env-impact-comparison
- Owner: gilyes
- License: gpl-2.0
- Created: 2019-01-12T23:44:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-19T01:51:47.000Z (about 2 years ago)
- Last Synced: 2024-06-19T08:45:40.866Z (about 2 years ago)
- Topics: environmental-impact, react, redux, wordpress
- Language: PHP
- Homepage:
- Size: 3.59 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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/