growasia_calculator
growasia_calculator copied to clipboard
An application to calculate the carbon emissions from crops in South East Asia. A project built in collaboration with Winrock for Grow Asia.
README
Grow Asia Carbon Emissions Calculator
This tool is built together with Winrock for the Grow Asia partnership.
It will allow farmers in South East Asia to run an analysis on their farming practices and practices changes in terms of their carbon emissions.
Dependencies
- Ruby 2.3.1
- Rails 5.0.0.1
- Postgresql 9.4
Project setup
-
Make sure you have the correct ruby version installed
-
Install the project gems:
bundle install
-
Copy the file
config/database_sample.yml
and rename it to onlydatabase.yml
. Change configuration for your database in that file. -
Create database:
rake db:create
-
Run migrations:
rake db:migrate
-
Import Geo Locations:
rake import:geo_locations
Running the project
- Start the rails server
rails server
- Point your browser to
http://localhost:3000