Skip to content

carboncalculated/car-emissions-calculator

Repository files navigation

#Car Calculator Example#

This is a simple car journey calculator using the calculated gem, provided By Carbon Calculated it asks the user enter details about their car to then find a specific car; the user is then asks to enter a distance; The CO2 emissions of the journey is then calculated; Super simple basically.

This an example of a rails3 application using the carboncalculated api; documentation for the api can be found here

##Getting the Application Up and Running##

  1. Get an api key from the guys are carboncalculated.com email support@carboncalculated.com and ask for one
  2. install bundler version 1.0.0.rc.5
  3. bundle install
  4. set you api key in the yaml file confg/car_app.yml api_key:
  5. script/rails server
  6. enjoy

Have a good look around and see how it was constructed it may give you ideas on how to create your own application using the carboncalculated api.....

##Specs## bundle exec spec

##Features## bundle exec cucumber

Have any question don't hesitate to contact support@carboncalculated.com

Licensing so the LICENCE file;

About

Calculate the Carbon Emissions of a Car Journey using the Carbon Calculated API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published