An open source, Ruby on Rails web application that estimates energy use in the agricultural sector.
Visit the Ag Energy Report for Iowa at: https://agreport.energydistrict.org
The model takes into account crop acreage and livestock estimates at the county level, pulls in data on the amount of fuel, electricity, and fertilizer used in crop and livestock production, and outputs agricultural energy use in terms of dollars, MMBtus, and emissions. Data sources include the USDA - National Agricultural Statistics Service Census of Agriculture & Annual Surveys, Iowa State University, the U.S. Energy Information Administration, U.S. Environmental Protection Agency, USDA Market News, and others.
Built using Ruby on Rails, PostgreSQL, Bootstrap 4, Highcharts, and AmCharts.
Steps to get the development application up and running at http://localhost:3000
- Install Ruby 2.7.7 or greater
- Install Ruby on Rails 5.2.8.1 or greater
- Install PostgreSQL 10 or greater (e.g., Postgres.app on the Mac)
git clone https://github.com/webdevbc/agenergyreport.git
cd agenergyreport
bundle install
rake db:setup
rails server
- Asset precompilation may be necessary on some hosts
rake assets:precompile
A project of the Winneshiek Energy District with funding provided through a NRCS Conservation Innovation Grant