I wrote this code to provide a way to record a life list of Australian birds. The species are retrieved from this Wikipedia page and stored in a MongoDB database. Sinatra provides the web application, with help from jQuery (jQuery-UI and Highcharts).
The code is for my personal use and comes with no guarantees whatsoever. If you’d like to give it a try, here are the steps:
- Download the code, e.g. git clone git@github.com:neilfws/AusBirds.git and cd code/sinatra
- bundle install
- Install MongoDB on the same machine (default host localhost and port)
- Seed the database using rake db:seed (creates database birds, collection species)
- Start the application; e.g. shotgun config.ru then http://localhost:9393
You can add, remove or search for species from the index page (all fields autocomplete when a common name is entered). Species can be edited from a search result or from the List page. The Genera page shows the top 20 genera (by percent observed); the Extinct page lists species where the notes field contains the word extinct.