Skip to content
AMEE edited this page Sep 14, 2010 · 2 revisions

AMEE Flight Calculator

This is an example Rails application that uses AMEE to calculates emissions from air travel.

You can create your own copy of this application using MyAMEE, or you can use this codebase to run your own copy on your own servers. You may also use it as a base from which to develop your own AMEE applications.

License

MIT (see the COPYING file)

Requirements

  • Rails 2.3.4
  • memcache
  • gems:
    • amee ~> 2.0.26
    • haml
    • uuidtools

Setup

The application is a standard Rails app, so all the usual rules apply.

Download the app, and customise config/amee.example.yml and config/database.example.yml with your own settings. You can get an AMEE API key from MyAMEE. Then run:

rake db:schema:load

to set up the database. Then, you should build the local airport cache by running:

rake amee:import_airports

Your app is then ready to use by running script/server.

Clone this wiki locally